Mod help

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
olilo22
Posts: 2
Joined: Fri Dec 27, 2013 9:19 pm

Mod help

Post by olilo22 »

I'm new to modding ftl and I'm starting out by making basic mods like the example mods on the mod managers i have written the code out and used the examples and searched for other information that I needed but I can't figure out what I have done wrong because the mod just doesn't work when I start the game with it. This is the code.

<!-- Beginning Advantage Mod-->

<event name="START_GAME">
<text>The data you carry is vital to the remaining Federation fleet. You'll need supplies for the journey, so make sure to explore each sector before moving on to the next. But get to the exit before the pursuing Rebel fleet can catch up!</text>
</event>

<event name="START_BEACON">
<text>Welcome to a new sector! Get to the exit beacon and jump to the next sector before the pursuing Rebels catch you!</text>
<choice hidden="true">
<event>
<text>Continue onwards with your mission. </text>
<event/>
</choice>
<choice hidden="true">
<text>Go search in a nearby abandoned space station.</text>
<event load="BEGINNING_CHOICE_HACKUNG">
</choice>
<choice hidden="true">
<text>Go strip some scrap from a nearby asteroid.</text>
<event>
<text>You take your shuttle and collect as much scrap as you can.
<autoReward level="HIGH">only_scrap</autoReward>
</event>
</choice>
</event>

<eventList name="BEGINNING_CHOICE_HACKING">
<event>
<text>You search around and find a weapon and some scrap.</text>
<autoReward level="RANDOM">weapon</autoReward>
</event>
<event>
<text>You search around the abandoned space station but find nothing. As you make your way back to the ship you see that someone managed to creep there way past you into the ship.
<choice hidden="true">
<text>Offer the stranger a place on your ship.
<event>
<text>"Why thank you" they reply.
<crewMember amount="1" class="mantis"/>
</event>
</choice>
<choice hidden="true">
<text>Tell the stranger to leave your ship. He reacts violently and calls his friend to come help him.<text>
<event>
<boarders min="2" max="2" class="mantis">
</event>
</choice>
</event>
</eventList>

Any help would be appreciated. :D
User avatar
Metzelmax
Posts: 364
Joined: Wed Sep 26, 2012 7:59 am

Re: Mod help

Post by Metzelmax »

load="BEGINNING_CHOICE_HACKUNG"

---> i <-------
Here is the Stuff I made:
ImageImageImageImage
And stuff is always better than no stuff, right?
User avatar
RAD-82
Posts: 795
Joined: Sat Nov 09, 2013 12:16 am

Re: Mod help

Post by RAD-82 »

olilo22 wrote:I'm new to modding ftl and I'm starting out by making basic mods like the example mods on the mod managers i have written the code out and used the examples and searched for other information that I needed but I can't figure out what I have done wrong because the mod just doesn't work when I start the game with it. This is the code.

Code: Select all

<!-- Beginning Advantage Mod-->

<event name="START_GAME">
	<text>The data you carry is vital to the remaining Federation fleet. You'll need supplies for the journey, so make sure to explore each sector before moving on to the next. But get to the exit before the pursuing Rebel fleet can catch up!</text>
</event>

<event name="START_BEACON">
	<text>Welcome to a new sector! Get to the exit beacon and jump to the next sector before the pursuing Rebels catch you!</text>
	<choice hidden="true">
		<event>
		<text>Continue onwards with your mission. </text>
		<event/>
	</choice>
	<choice hidden="true">
		<text>Go search in a nearby abandoned space station.</text>
		<event load="BEGINNING_CHOICE_HACKUNG">
	</choice>	
	<choice hidden="true">
		<text>Go strip some scrap from a nearby asteroid.</text>
		<event>
			<text>You take your shuttle and collect as much scrap as you can.
			<autoReward level="HIGH">only_scrap</autoReward>
		</event>
	</choice>
</event>		
		
<eventList name="BEGINNING_CHOICE_HACKING">
	<event>
		<text>You search around and find a weapon and some scrap.</text>
		<autoReward level="RANDOM">weapon</autoReward>
	</event>
	<event>
		<text>You search around the abandoned space station but find nothing. As you make your way back to the ship you see that someone managed to creep there way past you into the ship.
		<choice hidden="true">
			<text>Offer the stranger a place on your ship.
			<event>
				<text>"Why thank you" they reply.
				<crewMember amount="1" class="mantis"/>
			</event>
		</choice>
		<choice hidden="true">
			<text>Tell the stranger to leave your ship. He reacts violently and calls his friend to come help him.<text>
			<event>
				<boarders min="2" max="2" class="mantis">
			</event>
		</choice>
	</event>	
</eventList>

Any help would be appreciated. :D
This thing appears to have quite a few bugs, mostly missing </text> tags among other things. Here is my revised, and untested, version. It's possible I've missed a few things.

Code: Select all

<!-- Beginning Advantage Mod-->

<event name="START_GAME">
	<text>The data you carry is vital to the remaining Federation fleet. You'll need supplies for the journey, so make sure to explore each sector before moving on to the next. But get to the exit before the pursuing Rebel fleet can catch up!</text>
</event>

<event name="START_BEACON">
	<text>Welcome to a new sector! Get to the exit beacon and jump to the next sector before the pursuing Rebels catch you!</text>
	<choice hidden="true">
		<text>Continue onwards with your mission. </text>
		<event/>
	</choice>
	<choice hidden="true">
		<text>Go search in a nearby abandoned space station.</text>
		<event load="BEGINNING_CHOICE_HACKING"/>
	</choice>	
	<choice hidden="true">
		<text>Go strip some scrap from a nearby asteroid.</text>
		<event>
			<text>You take your shuttle and collect as much scrap as you can.</text>
			<autoReward level="HIGH">only_scrap</autoReward>
		</event>
	</choice>
</event>		
		
<eventList name="BEGINNING_CHOICE_HACKING">
	<event>
		<text>You search around and find a weapon and some scrap.</text>
		<autoReward level="RANDOM">weapon</autoReward>
	</event>
	<event>
		<text>You search around the abandoned space station but find nothing. As you make your way back to the ship you see that someone managed to creep there way past you into the ship.</text>
		<choice hidden="true">
			<text>Offer the stranger a place on your ship.</text>
			<event>
				<text>"Why thank you" they reply.</text>
				<crewMember amount="1" class="mantis"/>
			</event>
		</choice>
		<choice hidden="true">
			<text>Tell the stranger to leave your ship.</text>
			<event>
				<text>He reacts violently and calls his friend to come help him.</text>
				<boarders min="2" max="2" class="mantis"/>
			</event>
		</choice>
	</event>	
</eventList>
The Validate button on SMM can usually identify some problems with code. There is also FTL Error Checker, but I've never used it, so I can't say how to use it.
Image
Junkyard has FTL mods, mostly ships and a few other things.
olilo22
Posts: 2
Joined: Fri Dec 27, 2013 9:19 pm

Re: Mod help

Post by olilo22 »

Thanks for the help but I've made the changes you've suggested but it still doesn't work and i cant see why. I'll haft to check it a few more times and see if there's any spelling mistakes or errors.
EDIT: I've tried using ftl error checker but the mod doesn't even show up.
User avatar
RAD-82
Posts: 795
Joined: Sat Nov 09, 2013 12:16 am

Re: Mod help

Post by RAD-82 »

I've just tested the code, and it works fine. Your problem seems to be making a functional .ftl file.

You should have a data folder, and inside that folder is events.xml.append. If you are using Windows like me, you right-click on the data folder and select Send to -> Compressed (zipped) folder, rename that into an .ftl file, place it in the mod manager's mod folder, and if you did that while having the mod manager open, re-scan for it to show up in the list.
Image
Junkyard has FTL mods, mostly ships and a few other things.
Post Reply