Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

The mod can't add a "races" variable, because that variable already exists in the script, so either they conflict (and the mod is not applied) or the one from the mod is overwritten.
Btw, can you define a variable before the "extends Node" statement?
I suggest to remove line 2 and 19 from the mod and insert the code after line 359 of races.gd, so that the new two races are pushed at the end of the existing list (the mod should start with <AddTo 358> or something like that, the number may be slightly wrong)

Also what Kyler2 said.

http://strive4power.wikia.com/wiki/Modding_Guide

I know about the conflict, but my understanding is that the <AddTo -1> tag should resolve it by modifying the object alone. I already sent this off to Maverik, and he didn't seem to find a problem with my reasoning but recommended that I post here to see if anyone could find something he missed.

<AddTo ...> is based off insertion point, not total line number.

<AddTo 2>

func testfunc: ....

....


Will add to line 2 of testfunc, not line 2 of the file.

For base files, you cannot define anything before the "extends Node" statement.  Godot requires all files to begin with that.  (Or begin with extending a subclass of Node)