Data Realms Fan Forums http://45.55.195.193/ |
|
Creating new activities in B25 http://45.55.195.193/viewtopic.php?f=73&t=25127 |
Page 1 of 1 |
Author: | Gotcha! [ Sat Aug 13, 2011 1:20 am ] |
Post subject: | Creating new activities in B25 |
Hello, I'd like to create some new activity files for unitec, but I have no idea how. I copied the standard SkirmishDefense.lua file, renamed it to FleshFest.lua and added this to my index.ini: Code: AddActivity = GAScripted PresetName = Flesh Fest Description = Defend yourself against hordes and hordes of fleshies. Spawns Coalition and Ronin. SceneName = Ketanot Hills ScriptFile = UniTec .rte/Activities/FleshFest.lua PlayerCount = 3 TeamOfPlayer1 = 0 TeamOfPlayer2 = 1 TeamOfPlayer3 = 2 TeamOfPlayer4 = 3 TeamCount = 4 //CPUTeam = 1 MinTeamsRequired = 2 LuaClassName = FleshFest It doesn't appear in-game though. What am I not seeing? After this I replaced all instances of SkirmishDefense in the lua file with FleshFest, but still no go. Gawd, why was it necessary to remove the support for .ini files? |
Author: | Coops [ Sat Aug 13, 2011 6:35 am ] |
Post subject: | Re: Creating new activities in B25 |
How is the Activity loaded? Is it in its own ini file or something else like that? |
Author: | findude [ Sat Aug 13, 2011 3:00 pm ] |
Post subject: | Re: Creating new activities in B25 |
Quote: ScriptFile = UniTec .rte/Activities/FleshFest.lua Whitespace intentional? |
Author: | Gotcha! [ Sat Aug 13, 2011 3:46 pm ] |
Post subject: | Re: Creating new activities in B25 |
Oops, nope. Thanks for spotting that. Teaches me not to stare into .ini files around 4 in the morning. Doesn't make a difference though. I am getting the scary feeling that it needs to be added within base.rte. I don't get it. |
Author: | findude [ Sat Aug 13, 2011 4:33 pm ] |
Post subject: | Re: Creating new activities in B25 |
Edit: Hah disregard that I guess I should do some reading too. |
Author: | Gotcha! [ Sat Aug 13, 2011 4:50 pm ] |
Post subject: | Re: Creating new activities in B25 |
Jus tested it. When my activity is added to activities.ini within base.rte it works: I don't want mod users to need to modify their base.rte for every mod they download. Data, |
Author: | findude [ Sat Aug 13, 2011 5:29 pm ] |
Post subject: | Re: Creating new activities in B25 |
Weird indeed. I made a new rte, copied over the SkirmishDefense.lua, findreplaced the Lua class name and it's working just fine. Perhaps try making the activity a standalone .rte then. Just make sure it gets loaded after your mod. The order is alphabetical. Edit: Throwing it into a mod of mine made it disappear. However, I got it back by placing the activity into a clean Activities.ini that I included from the index. It might be that the game messes up property relations if there's other stuff. |
Author: | Gotcha! [ Sat Aug 13, 2011 5:37 pm ] |
Post subject: | Re: Creating new activities in B25 |
Interesting. Because of what you said I made a separate .ini file to put my activities in and now it works. Putting them directly into the index.ini doesn't make them appear. I still don't get it but the problem is solved. |
Author: | Grif [ Sun Aug 14, 2011 5:02 am ] |
Post subject: | Re: Creating new activities in B25 |
I think for whatever reason Activities, despite being generic .ini code, have to be a in a seperate Activities.ini file. |
Author: | findude [ Sun Aug 14, 2011 10:54 am ] |
Post subject: | Re: Creating new activities in B25 |
Maybe, but I got my activities to load from a file called Wubwub.ini |
Author: | Gotcha! [ Sun Aug 14, 2011 11:42 am ] |
Post subject: | Re: Creating new activities in B25 |
Which is a separate .ini file. The filename should not matter. I threw my junk inside index.ini and that's definitely a no-go. Oh, I didn't properly thank you. Thanks for thinking with me, findude. |
Author: | findude [ Sun Aug 14, 2011 11:49 am ] |
Post subject: | Re: Creating new activities in B25 |
Actually, a Index.ini with nothing but DataModule and the activity definition WILL work. Go figure. |
Author: | Grif [ Sun Aug 14, 2011 6:37 pm ] |
Post subject: | Re: Creating new activities in B25 |
out of curiosity: did you includefile any other content? if so, before or after the activities definition? |
Author: | findude [ Sun Aug 14, 2011 9:56 pm ] |
Post subject: | Re: Creating new activities in B25 |
IncludeFile'd content before defining. Did not test defining the activities first. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |