openage icon indicating copy to clipboard operation
openage copied to clipboard

How to load data from drs files

Open karaarda opened this issue 10 years ago • 8 comments

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

karaarda avatar Jan 24 '16 11:01 karaarda

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.

TheJJ avatar Jan 24 '16 21:01 TheJJ

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 avatar Jan 25 '16 16:01 karaarda

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 avatar Jan 25 '16 17:01 karaarda

@TheJJ I am not able to reopen :/

karaarda avatar Jan 25 '16 17:01 karaarda

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

TheJJ avatar Jan 25 '16 19:01 TheJJ

@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?

karaarda avatar Jan 25 '16 19:01 karaarda

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.

TheJJ avatar Jan 25 '16 19:01 TheJJ

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

karaarda avatar Jan 25 '16 20:01 karaarda