SFTtech / openage

Free (as in freedom) open source clone of the Age of Empires II engine 🚀
http://openage.dev
Other
12.73k stars 1.12k forks source link

How to load data from drs files #491

Closed karaarda closed 8 years ago

karaarda commented 8 years ago

Hi, I am working on cloning age of Empires too but mine is just an amateur hobby work. I couldn't find a way to open .drs files and handle them. How do you do this? I couldn't find that part of code. Thanks

TheJJ commented 8 years ago

All the documentation is in the doc/ folder. For the drs format, there's ./doc/media/drs-files.md. The implementation is in openage/convert, namely drs.py, slp.py and more.

We already implemented all of this, so I can really encourage you not to duplicate the work and instead help us work on parts that do not exist yet. We do all that stuff as amateur hobby work as well.

If you still got problems, feel free to reopen.

karaarda commented 8 years ago

Thanks for answering, I have stuff to do before starting the project, I can start helping in summer. I will make you know when I am able to help.

karaarda commented 8 years ago

Do you extract all slp files into png's before using them are do you get them from .drs files at runtime? Sorry if it is a silly question because I have trouble with reading code on phone. Thanks

karaarda commented 8 years ago

@TheJJ I am not able to reopen :/

TheJJ commented 8 years ago

We extract all files into pngs before using them. And I suggest using a real computer for working with the code :wink:...

karaarda commented 8 years ago

@TheJJ thanks for the suggestion but this is why I can't help before summer :/ my computer is broken and I am preparing for university so I can't buy a new one. One last question comes: How do you colorize png's for different players? Do you use shaders or do you create one png per one color?

TheJJ commented 8 years ago

We're using shaders to replace the player color on the fly, so we don't duplicate the images for each player color.

If you wanna have a more interactive chat, feel free to join our irc on freenode.net channel #sfttech.

karaarda commented 8 years ago

@TheJJ I will visit your channel next week when I find time 👍 thanks for the invitation.