[new formats] File formats

Project to create a new client based on new file formats and eventually a new 3D engine.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Re: [new formats] File formats

Postby PurpleYouko on Fri Nov 12, 2010 2:50 pm

Here's a question regarding the CON files.

Is there any real reason that LUA used in them needs to be compiled?
I find the compiling step to be a real pain in the ass when editing CON files
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: [new formats] File formats

Postby Sethanye on Sat Nov 13, 2010 3:10 am

isnt it just because they need to be encrypted? it uses XOR or whatever for the encryption.
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2603
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: [new formats] File formats

Postby Raven0123 on Sat Nov 13, 2010 4:16 am

PurpleYouko wrote:Here's a question regarding the CON files.

Is there any real reason that LUA used in them needs to be compiled?
I find the compiling step to be a real pain in the ass when editing CON files


the lua is compiled because it saves space. It basicly converts the text into a binary form.
User avatar
Raven0123
osiRose dev
osiRose dev
 
Posts: 379
Joined: Tue Sep 11, 2007 11:06 pm
Location: USA, NJ

Re: [new formats] File formats

Postby Sethanye on Sat Nov 13, 2010 4:48 am

and that's it? lol seems kinda pointless, i mean there isn't that much data compared to like stbs with 6k+ entries.
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2603
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: [new formats] File formats

Postby Juan on Sat Nov 13, 2010 11:19 am

Maybe it's faster to execute.
User avatar
Juan
Rackie
Rackie
 
Posts: 219
Joined: Fri Oct 10, 2008 6:25 pm

Re: [new formats] File formats

Postby lmame on Sat Nov 13, 2010 11:47 am

Sethanye wrote:and that's it? lol seems kinda pointless, i mean there isn't that much data compared to like stbs with 6k+ entries.

Yeah but STB data are only loaded once. I don't know if that's the case for the .con files?
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [new formats] File formats

Postby xqnp7 on Sat Nov 13, 2010 4:14 pm

Breaking from the discussion of the CON files. I do 3D work for ROSE, and I'm quite fond of the ZMS file type, but I think it would be neat to include support for ZMS and something else, like 3DS. Something easy for people to work with.
AKA Sneaux, VXJP1, Sanctum
xqnp7
Jelly Bean
Jelly Bean
 
Posts: 31
Joined: Tue Jun 17, 2008 9:42 pm
Location: Tennessee, USA

Re: [new formats] File formats

Postby PurpleYouko on Sat Nov 13, 2010 6:36 pm

Juan wrote:Maybe it's faster to execute.

No it will actually be slower to execute since it has to be XORed and then decompiled before it can even be used.

Assuming the CONs are all loaded then stored in memory then it will load slower but then be ok

Assuming CONs are loaded on need then they will still load a lot slower and the operational speed will remain the same.

I see no advantage (other than saving a few bytes of storage space) in encrypting or compiling the LUA. There aren't that many CON files anyway and the LUA in them is pretty small.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: [new formats] File formats

Postby Raven0123 on Sun Nov 14, 2010 9:35 am

PurpleYouko wrote:
Juan wrote:Maybe it's faster to execute.

No it will actually be slower to execute since it has to be XORed and then decompiled before it can even be used.

Assuming the CONs are all loaded then stored in memory then it will load slower but then be ok

Assuming CONs are loaded on need then they will still load a lot slower and the operational speed will remain the same.

I see no advantage (other than saving a few bytes of storage space) in encrypting or compiling the LUA. There aren't that many CON files anyway and the LUA in them is pretty small.


its funny because now your making me want to know why they did it that way. So now I'll find out
User avatar
Raven0123
osiRose dev
osiRose dev
 
Posts: 379
Joined: Tue Sep 11, 2007 11:06 pm
Location: USA, NJ

Re: [new formats] File formats

Postby xadet3 on Sun Nov 14, 2010 7:55 pm

PurpleYouko wrote:
Juan wrote:Maybe it's faster to execute.

No it will actually be slower to execute since it has to be XORed and then decompiled before it can even be used.

Assuming the CONs are all loaded then stored in memory then it will load slower but then be ok

Assuming CONs are loaded on need then they will still load a lot slower and the operational speed will remain the same.

I see no advantage (other than saving a few bytes of storage space) in encrypting or compiling the LUA. There aren't that many CON files anyway and the LUA in them is pretty small.

That's not how Lua works :P. XORing will take less than a millisecond and they aren't decompiled as Lua uses a virtual machine.
xadet3
Pero pero
Pero pero
 
Posts: 727
Joined: Tue Jan 08, 2008 11:51 pm
Location: Norwich, England.

PreviousNext

Return to [Project] Custom client (new 3d engine, new files formats)

Who is online

Users browsing this forum: No registered users and 1 guest