Page 2 of 26

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Fri Sep 14, 2012 8:57 pm
by bas
Yes, that should explain it. Thanks!

This is how I fixed it in r3:

https://github.com/bwesterb/ftldat/comm ... 8ff81efd9e

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Fri Sep 14, 2012 9:03 pm
by marinepower
First thing I ended up making:
Image

Die, rebel scum!

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 3:47 am
by yvesdelunet
Hey all, I've downloaded Python for my Mac and then the ftldat folder but I'm pretty confused as how to do things from there. I'm thinking the procedure may be a bit different for mac. Any ideas?

thanks

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 8:15 am
by bas
yvesdelunet wrote:Hey all, I've downloaded Python for my Mac and then the ftldat folder but I'm pretty confused as how to do things from there. I'm thinking the procedure may be a bit different for mac. Any ideas?

thanks
On Mac it is a bit easier, because Python is already installed.

Open Terminal and go to the/path/to/ftldat/src. Then run, for instance:

Code: Select all

python main.py info /Applications/FTL.app/Contents/Resources/data.dat

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 8:55 am
by KnMn
Wow, that was fast! I'm not sure if the devs are going to approve of this tool but it's out there now. Let the hacking begin...

Some intersting comments in events.xml

Code: Select all

<!--	
		New Ideas:
		
You're asked to scare someone off but not kill them
A treasure that if you choose to open it the jump track advances   	
- add a quest that is just a warning "don't go over here, there are pirates ambushing people"
engi - asks for a weapon to use - can give you an upgrade?
	
-->
and

Code: Select all

<!--      ****************************
			NEEDS EDITING - New Events
		  ********************************
		  
		  maybe something about a mysterious unexplained ship
you can try to communicate or beam aboard
maybe your people disappear, maybe they're given a gift
maybe the ship just disappears
maybe something really rare and unusual
maybe with scanner tech or other stuff you can wait out a turn and see if you can make contact
or maybe it just steals one of your people
or maybe nothing happens and its just a weird thing that leaves people like... well what was that about?
maybe somebody beams aboard that just bothers you, like Q from next generation
		  
		  
		  maybe something that requires approaching a star to retrieve something or someone
		  malfunction in sensors...sensor trick showing multiple enemy ships when only one weak one...
they demand whatever and disappear or you fire at them or call their bluff in some way
civilian ship held hostage, requiring you to take on a mission...
rebel wanting to defect
colonists needing supplies
two ships docked together mysteriously, no life signs
a crash landing on a large asteroid
undetectable presence on the ship, helps or hurts or nothing if you probe it or try to communicate
i mean not undetectable but unidentifiable
star going supernova
gravitational phenomena, dark matter
 debris detected on a small moon
colonists needing rescue
save someone who turns out to be a spy
		  
-->


<!-- QUESTS 

if you have improved doors you can deliver  a prisoner somewhere.  If you dont.... (??)


<!-- Neutral 

Someone asks you to help them on a land-based combat mission, borrow the crew member? - potentially killing them0 (?) - can give mantis or rock for increased success
Great work, bas. I'll be playing with this all night.

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 9:33 am
by Natalie
I hope there will be lots of modding available for the game, I'd love to use it for making new ships and maybe an alternate type of campaign would be nice, one without running away and more of an exploration thing XD

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 9:52 am
by Jessen
i'd like to get into this, but i have no idea whats going on and i'm mearly a simple windows user, cna i get some actual details on how to unpack, and then repack successfully and have it work?

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 9:59 am
by bas
In a previous post I explained how it could be run on Windows.

http://www.ftlgame.com/forum/viewtopic. ... 1920#p6718

Maybe marinepower, who succesfully repacked on Windows, could add some screenshots or a screencast. I am not a windows user.

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 10:13 am
by Jessen
he added

Code: Select all

def add(self, filename, f, size):
        filename = filename.replace('\\','/')
to line 46, but i dont know what that means or how to do it. maybe someone can enlighten me.

Re: [Modding] Packing and unpacking data.dat and resource.da

Posted: Sat Sep 15, 2012 10:22 am
by cookie42
KnMn wrote:Wow, that was fast! I'm not sure if the devs are going to approve of this tool but it's out there now. Let the hacking begin...

Some intersting comments in events.xml
I don't think they'll have much of a problem with modders, but sharing the ideas they left in their code doesn't seem very nice. Especially if they have to take out those notes because people share them and spoil it for others. :cry: