Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

While it is possible that I missed a function or variable when compiling the list of code changes, that actually sounds like you did not add the code correctly to the game files. The function changerace is not one of my functions, but is called by one of the functions I modified.

The first thing to understand is that the files provided are not game files. They will not work by dropping them into the game folders. Rather the files are excerpts of code. The code has to be inserted into a game file manually. There is a header for each section of code which tells you what game file and whether you are adding new code or replacing existing code. New code can be added anywhere within a script. Though in general it is best practice to place global variables before functions, for simplicity you may want to just add all the new code at the bottom since it is just for your personal use. Modified code, however, must replace the existing variable/function otherwise you will get an error for multiple declarations.


Before making any edits make sure you have a backup of you game files, especially if you have made any other manual modifications.

I prepared them this way because the intent is to allow Aric to easily perform a code review and then add it into the base expansion. It is likely by the time this code is release ready he will be in the middle of working on v0.95.0 so this allows him to easily integrate my work into his current work.  

Hope this helps.

(2 edits)

right, so i did copy and paste the individual code blocks i'm pretty sure into the correct places, but strive still flips out. does anyone know where changerace() even is?


EDIT: OHHHH, so you wanted me to port the code blocks into ARIC's scripts, not the applied scripts. That makes more sense, since changerace() isn't in the applied constructor.gd but IS in aric's constructor.gd

well, you can disregard me entirely ig.

To clarify (and for anyone else reading) after you have enabled Aric's mod and it is working correctly you would want to insert the code into the game files within the main Strive game folder. Typically when I am writing any code for Strive I edit the game files directly so that I can see code changes immediately upon reloading the game. This of course means that if you go back into the mod options and disable the Aric mod you will lose all of your code changes (which is why I also keep a copy outside of strive). There are also some files which are not part of the base game which reside only in the roaming/strive/mod/AricsExpansion folder. I think the only file in there that is modified is expansion.gd.

So, for base game files put the code into the files located within the main game folder. For expansion only files, put them in the files in the roaming folder.