Project X Forums
http://px.worms2d.info/forum/

Sort files in pxl-file?
http://px.worms2d.info/forum/viewtopic.php?f=13&t=672
Page 1 of 1

Author:  Danylo [ Thu Aug 22, 2013 12:10 pm ]
Post subject:  Sort files in pxl-file?

Does anybody know how to sort files in a library? I mean not copy-pasting scripts and extracting and adding files again and again in the fine order.
I tried to edit a pxl-file in the text editor replacing two scripts but that does not work. PXLEditor doesn't see any content in it then.

Author:  stRiNgkiNg [ Sat Aug 24, 2013 3:25 am ]
Post subject:  Re: Sort files in pxl-file?

I don't know but I wish I did!!! Man that would be a great ability. While speaking of cool abilities, another one would be the silly case sensitive problem with libs transferred to others while online. That REALLY annoys me. Why is it even designed that way? Is there reasoning behind it or what

Author:  Danylo [ Sat Aug 24, 2013 2:09 pm ]
Post subject:  Re: Sort files in pxl-file?

Ok. I've just found out how to replace 2 scripts in a lib file. I used a hex editor to catch alterations PXLEditor do when you save your lib with scripts.
Results:
  1. The 6th byte in the lib represents a number of total files;
  2. The byte right after script's name represents the size of the script.
So if you want to replace 2 scripts not copy-paste-renaming, you should use an hex editor replacing the bytes wich represents script's names and the bytes of actual text. But that's actually much harder to do than copy-pasting! :D

So, if coming autumn term in the university is not hard for me, I'll write a prograame for Windows which allows easy and fast replacing of files in libs.

Author:  PyroMan [ Sat Aug 31, 2013 7:22 pm ]
Post subject:  Re: Sort files in pxl-file?

Danylo wrote:
Ok. I've just found out how to replace 2 scripts in a lib file. I used a hex editor to catch alterations PXLEditor do when you save your lib with scripts.
Results:
  1. The 6th byte in the lib represents a number of total files;
  2. The byte right after script's name represents the size of the script.
So if you want to replace 2 scripts not copy-paste-renaming, you should use an hex editor replacing the bytes wich represents script's names and the bytes of actual text. But that's actually much harder to do than copy-pasting! :D

So, if coming autumn term in the university is not hard for me, I'll write a prograame for Windows which allows easy and fast replacing of files in libs.


That would be awesome.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/