| Author | Message | 
        
			| Gotcha! 
					Joined: Tue Apr 01, 2008 4:49 pm
 Posts: 1972
 Location: The Netherlands
   |   Creating new activities in B25Hello,  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 = GAScriptedPresetName = 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 | 
					
					   | 
	
	
		|  | 
	
			| Coops 
					Joined: Wed Feb 17, 2010 12:07 am
 Posts: 1545
 Location: That small peaceful place called Hell.
   |   Re: Creating new activities in B25How is the Activity loaded? Is it in its own ini file or something else like that? 
 
 | 
		
			| Sat Aug 13, 2011 6:35 am | 
					
					   | 
	
	
		|  | 
	
			| findude 
					Joined: Tue Dec 12, 2006 3:10 pm
 Posts: 495
 Location: Uncertain quantum state
   |   Re: Creating new activities in B25Quote: ScriptFile = UniTec .rte/Activities/FleshFest.luaWhitespace intentional?
 
 | 
		
			| Sat Aug 13, 2011 3:00 pm | 
					
					   | 
	
	
		|  | 
	
			| Gotcha! 
					Joined: Tue Apr 01, 2008 4:49 pm
 Posts: 1972
 Location: The Netherlands
   |   Re: Creating new activities in B25Oops, 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 | 
					
					   | 
	
	
		|  | 
	
			| findude 
					Joined: Tue Dec 12, 2006 3:10 pm
 Posts: 495
 Location: Uncertain quantum state
   |   Re: Creating new activities in B25Edit: 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 | 
					
					   | 
	
	
		|  | 
	
			| Gotcha! 
					Joined: Tue Apr 01, 2008 4:49 pm
 Posts: 1972
 Location: The Netherlands
   |   Re: Creating new activities in B25Jus 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,
 pleasefixed, 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 | 
					
					   | 
	
	
		|  | 
	
			| findude 
					Joined: Tue Dec 12, 2006 3:10 pm
 Posts: 495
 Location: Uncertain quantum state
   |   Re: Creating new activities in B25Weird 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 | 
					
					   | 
	
	
		|  | 
	
			| Gotcha! 
					Joined: Tue Apr 01, 2008 4:49 pm
 Posts: 1972
 Location: The Netherlands
   |   Re: Creating new activities in B25Interesting. 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 | 
					
					   | 
	
	
		|  | 
	
			| Grif REAL AMERICAN HERO 
					Joined: Sat Jan 27, 2007 10:25 pm
 Posts: 5655
   |   Re: Creating new activities in B25I 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 | 
					
					   | 
	
	
		|  | 
	
			| findude 
					Joined: Tue Dec 12, 2006 3:10 pm
 Posts: 495
 Location: Uncertain quantum state
   |   Re: Creating new activities in B25Maybe, but I got my activities to load from a file called Wubwub.ini 
 
 | 
		
			| Sun Aug 14, 2011 10:54 am | 
					
					   | 
	
	
		|  | 
	
			| Gotcha! 
					Joined: Tue Apr 01, 2008 4:49 pm
 Posts: 1972
 Location: The Netherlands
   |   Re: Creating new activities in B25Which 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.  
 
 | 
		
			| Sun Aug 14, 2011 11:42 am | 
					
					   | 
	
	
		|  | 
	
			| findude 
					Joined: Tue Dec 12, 2006 3:10 pm
 Posts: 495
 Location: Uncertain quantum state
   |   Re: Creating new activities in B25Actually, a Index.ini with nothing but DataModule and the activity definition WILL work.
 Go figure.
 
 
 | 
		
			| Sun Aug 14, 2011 11:49 am | 
					
					   | 
	
	
		|  | 
	
			| Grif REAL AMERICAN HERO 
					Joined: Sat Jan 27, 2007 10:25 pm
 Posts: 5655
   |   Re: Creating new activities in B25out of curiosity: did you includefile any other content? if so, before or after the activities definition? 
 
 | 
		
			| Sun Aug 14, 2011 6:37 pm | 
					
					   | 
	
	
		|  | 
	
			| findude 
					Joined: Tue Dec 12, 2006 3:10 pm
 Posts: 495
 Location: Uncertain quantum state
   |   Re: Creating new activities in B25IncludeFile'd content before defining. Did not test defining the activities first. 
 
 | 
		
			| Sun Aug 14, 2011 9:56 pm | 
					
					   | 
	
	
		|  | 
	
	
		|  |