View unanswered posts | View active topics It is currently Fri Mar 29, 2024 1:06 pm



Reply to topic  [ 14 posts ] 
 Creating new activities in B25 
Author Message
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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?


Sat Aug 13, 2011 1:20 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Creating new activities in B25
How is the Activity loaded? Is it in its own ini file or something else like that?


Sat Aug 13, 2011 6:35 am
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Creating new activities in B25
Quote:
ScriptFile = UniTec .rte/Activities/FleshFest.lua


Whitespace intentional?


Sat Aug 13, 2011 3:00 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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.


Sat Aug 13, 2011 3:46 pm
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Creating new activities in B25
Edit: Hah disregard that I guess I should do some reading too.


Last edited by findude on Sat Aug 13, 2011 5:11 pm, edited 1 time in total.



Sat Aug 13, 2011 4:33 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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, please fixed, thanks.


Last edited by Gotcha! on Sat Aug 13, 2011 5:37 pm, edited 1 time in total.



Sat Aug 13, 2011 4:50 pm
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post 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.


Last edited by findude on Sat Aug 13, 2011 5:38 pm, edited 2 times in total.



Sat Aug 13, 2011 5:29 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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.


Sat Aug 13, 2011 5:37 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Sun Aug 14, 2011 5:02 am
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Creating new activities in B25
Maybe, but I got my activities to load from a file called Wubwub.ini


Sun Aug 14, 2011 10:54 am
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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. :grin:


Sun Aug 14, 2011 11:42 am
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Creating new activities in B25
Actually, a Index.ini with nothing but DataModule and the activity definition WILL work.

Go figure.


Sun Aug 14, 2011 11:49 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Creating new activities in B25
out of curiosity: did you includefile any other content? if so, before or after the activities definition?


Sun Aug 14, 2011 6:37 pm
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Creating new activities in B25
IncludeFile'd content before defining. Did not test defining the activities first.


Sun Aug 14, 2011 9:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.068s | 17 Queries | GZIP : Off ]