hello everyone
id like to first express my gratitude towards the time and effort that has been put into tutorials and tools for people looking to create mods
by following the instructions i have been able to set up vs code with java sdk and extensions and have successful built and packaged a release using Jaghaimo's template
i have been trying to create a star system for a day now but to no avail. i am not sure this is the right place to ask but i exhausted all my ideas and need help
i have tried:
using only bare minimum code (only create and move lines)
using different package namespaces
moving the jar file and adding the path to it in the mod_info.json
i found two ways of logging by looking at other mods source code but am unable to find the logged lines or any errors in starsector-core/starsector.log
i was able to add a test ship and add it to a fleet with console command and i am also getting these logs:
INFO com.fs.starfarer.loading.LoadingUtils - Loading JSON from [DIRECTORY: ..\starsector-core\..\mods\pantheonorbitalworks (data/campaign/econ/economy.json)]
INFO com.fs.starfarer.loading.LoadingUtils - Loading CSV data from [DIRECTORY: ..\starsector-core\..\mods\pantheonorbitalworks]
INFO com.fs.starfarer.loading.LoadingUtils - Loading JSON from [DIRECTORY: ..\starsector-core\..\mods\pantheonorbitalworks (data/campaign/starmap.json)]
INFO com.fs.starfarer.loading.LoadingUtils - Loading JSON from [DIRECTORY: ..\starsector-core\..\mods\pantheonorbitalworks (data/campaign/econ/economy.json)]
INFO com.fs.starfarer.loading.LoadingUtils - Loading JSON from [DIRECTORY: ..\starsector-core\..\mods\pantheonorbitalworks (data\campaign\econ/POW_Sol.json)]
INFO com.fs.starfarer.loading.SpecStore - Loaded spec with id [Pantheon_|_constellation]
i think this narrows down the problem to running the java code
i have uploaded the code and build release to github in hopes someone can spot what i have done wrong
https://github.com/GeorgeMarinov/pantheonorbitalworksany help would be very appreciated!
UPDATE:
i was able to load up the java code by adding these two lines to the mod_info.json
"jars":["pantheonorbitalworks.jar"],
"modPlugin":"pantheonorbitalworks.POW_modPlugin"
the template will place the compiled code in the same directory as the mod_info.json, the name will be {your mod id}+.jar
as for the mod plugin, since i changed my package name while trying to load the code from data.scripts to pantheonorbitalworks that is the namespace i had to add to mod_info.json so it should be data.scripts.yourModPluginClass by default