Author Topic: [SOLVED, mostly] Generating Gamemode Files?  (Read 1919 times)

I'm working on an add-on that helps people construct gamemodes. Before getting into the code too heavily, I want to make sure I'm not reinventing the wheel. From this, I see that you can us saveEnvironment() to save the environment settings. Is there a similar function for generating an add-ons list? Or do I just have to manually iterate over $AddOn__...? If so, how can I iterate over $AddOn__...? Or is there a better way to get a list of all enabled add-ons (e.g. some SimSet)?

Same question for generating a list of required music files. Is there a function for creating a list of required music files? Or do I just have to manually iterate over $Music__...? If so, how can I iterate over $Music__...? Or is there a better way to get a list of all enabled music files?
« Last Edit: January 06, 2018, 06:15:04 AM by Platypi »

It's a shame that I still have not started my maker yet.

What you can do for the addon list, is discover all files in the add-on folder (and verify them so they aren't causing trouble) and add them to a list, use the list to create a bunch of checklist controls, and then do all your calculations there

Same for music, discover all oggs in the music folder, check if they can be added, and do the same as above.

Pretty sure that's how I did it on my older maker.

For the other method (save as current add-on prefs), you could read the ADD_ON_LIST.cs and the MUSICLIST.cs (whatever the name is) and add them if they are "1", although it's recommended to use the solution with this above and use getSafeVariableName to see if they match the same file. I'm sure there's a better way to do this part, this is just the quickest way I can think of.
« Last Edit: December 29, 2017, 11:29:07 PM by Kyuande »

This has been made at least 3 times. Search for "game mode maker" or the like.

This has been made at least 3 times. Search for "game mode maker" or the like.
i've only found 2, viso's and this one

links are down for both


This has been made at least 3 times. Search for "game mode maker" or the like.
Oh, derp. Looks like Visolator did a pretty good job with his. It looks like it could still use a few modifications, though, such as an option to load in the current environment settings. Hook me up with that download if you would.

Here's one in my addons folder https://www.dropbox.com/s/b6t0ok9ekd1fnl4/System_GamemodeGenerator.zip?dl=0
I assume its Perlin Noises one. This takes the current environment settings iirc

Looks like Visolator did a pretty good job with his. It looks like it could still use a few modifications, though, such as an option to load in the current environment settings. Hook me up with that download if you would.

Got the download for Visolaters Script_GMMaker thanks to c[_]

Here you go :)