lilliemarck / rwsreader

0 stars 1 forks source link

make it to release #1

Open kurdischerjapane opened 3 years ago

kurdischerjapane commented 3 years ago

can you please make it to a release?

lilliemarck commented 3 years ago

I don't maintain this code and if I remember correctly the style is a bit dated. It supports some of the objects I needed at the time but if it's useful just copy the code and extend it. I am not likely to update it anymore anyway.

Den sön 28 mars 2021 kl 00:15 skrev kurdischerjapane < @.***>:

can you please make it to a release?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lilliemarck/rwsreader/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALHWA264N537XXKTG6WYHLTFZRJPANCNFSM4Z5MPPEA .

kurdischerjapane commented 3 years ago

how i can use it i dont have any source code experience ? can you make a tutorial for it? or just make it ready for me?

lilliemarck commented 3 years ago

What do you want to do? The classes are just for reading the data. You still need to write code that renders something with whatever graphics library you are using.

There are some comments in main.cpp. Not sure exactly what I mean with everything in there but should give some hint. The RenderWare files are some kind of "streams" of objects. All objects have the same header. You need to read the header and look at the type to see if you want to read it. The header contains the size of the object in bytes so you can skip that many bytes to get to the next object. The findChunk is a utility function that does such a search but you may want to write a loop with different cases instead. There is an enum for the various types of chunks and it should be clear which one corresponds to the various classes. You may want to experiment looping through the chunks of a file and see what you find. I only know it worked for some basic models we had. Unsure if it's good enough to load files from some commercial game. They may have done custom object types or used features that I didn't care about.

kurdischerjapane commented 3 years ago

Beat down fist of vengeance got RWS file and dff file dff file i can use the GTA tool to open it.but in beat down therer for the enviorment and NPC character the Rws file. i want open it and replace it. RWS i can open it but i get clumb and raster data