HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: (resolved)Disabled CSS - what steps I should set manually?  (Read 698 times)

GlorianLanTarini

  • General Accounts
  • *
  • Posts: 148
    • View Profile

Hello, everybody.

Today I decided to disable CSS in my game world because I don't need to choose a character in my design.
Of course, login process stops on area 1 for now.

But, before I start to implement game-specific mechanic, I need to know - what exactly I should do.

I mean - what already done at the moment when login process find that CSS disabled and stopped?
Was player connection factored? Was account root node loaded? Was session started? Etc.

I will be glad to any help, but especially qualified ones (I need to be sure).
« Last Edit: Jul 21, 17, 09:42:03 AM by GlorianLanTarini »
Logged

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1405
    • View Profile
    • Forever Interactive, Inc.
Re: Disabled CSS - what steps I should set manually?
« Reply #1 on: Jul 20, 17, 04:17:42 PM »

I am not sure exactly what you did to "disable" CSS.  We also have a design where the player will only have one character, though we have not yet removed the character selection.

Our plan is to eventually have it check when they enter area 1 whether they have their single character created yet. If not, we would send them directly into the character creation area. If they do already have a character, we would log them in with that character and send them to the starting area. Basically, you would directly perform the same things that happen normally after a character has been chosen, only without making the player manually select them.

I hope that makes sense.
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

GlorianLanTarini

  • General Accounts
  • *
  • Posts: 148
    • View Profile
Re: Disabled CSS - what steps I should set manually?
« Reply #2 on: Jul 20, 17, 05:46:14 PM »

I am not sure exactly what you did to "disable" CSS.

Code: [Select]
method HE_CSSEnabled( enabled references Boolean ) as Boolean
// Globally enabled/disable the CSS system
 
// To disable the CSS system:
  enabled = false
  return true
.
Logged

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1405
    • View Profile
    • Forever Interactive, Inc.
Re: Disabled CSS - what steps I should set manually?
« Reply #3 on: Jul 20, 17, 07:41:12 PM »

oh, guess I never saw that one before.
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

GlorianLanTarini

  • General Accounts
  • *
  • Posts: 148
    • View Profile
Re: Disabled CSS - what steps I should set manually?
« Reply #4 on: Jul 21, 17, 09:41:39 AM »

Well, that was easier than I thought.
I found out after some investigations that the account is loaded properly, the player connection creates and game session starts.

The last method which called by the engine is $ACCOUNT._SessionStarted( theAccount as NodeRef ).
Accordingly, the best place to implements the game mechanics is method HE_PostSessionStarted( theAccount as NodeRef ).
Logged