Skip to content

Effect markers are not saved properly #112

@TrafficConeOfSchooling

Description

@TrafficConeOfSchooling

To recreate:

  1. Spawn an effect marker (under the others section of markers)
  2. Select the marker and change the effect template to any one of the templates in EffectTemplates.lua
  3. Save the map.
  4. Start a game on the map with the effect marker.
  5. Check the game log and you will see this error in the log:

WARNING: BeginSession() failed: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(549): access to nonexistent global variable ""
         stack traceback:
         	[C]: in function `error'
         	...ata\faforever\gamedata\lua.nx2\lua\system\config.lua(58): in function <...ata\faforever\gamedata\lua.nx2\lua\system\config.lua:57>
         	...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(549): in function `BeginSessionEffects'
         	...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(310): in function `BeginSession'

It turns out that the map editor will set the EffectTemplate for that marker defined in the save file to an empty string which causes the above error.
Best way around it is modifying the save file manually and setting the effect template that way without saving the map.

I have attached the editor log in case it sheds some light on this issue.

Player.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions