Last resort logo

SWAT 3 - LAST RESORT GAME MODIFICATION


Spam Prevention - PLEASE READ !! (23 Apr 2021)

Due to a problem with spammers the rules for posting in the forums have changed for new users.

Newly registered users won't have their posts published until a moderator approves them.

Research into .MAP format

More
3 years 11 months ago #1537 by Slippery Jim
Not sure how interested my son is in pursuing this DarkSynopsis. Feel free to take the ball and run with this. He probably is only interested in the coding side of things.

Ya textures are of limited importance compared to geometry. It is moderately easy to re-apply textures (except on geometry that was tied to an entity then rotated).

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #1539 by DarkSynopsis
That's fair, would it be possible to get the scn2json script now that it outputs better formatted?

Would save me asking for different jsons for testing :P

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #1540 by Slippery Jim
I will ask him if he is okay with that. I shouldn't just assume he isn't interesting in working on this more.

Update: okay he is fine with sharing the files with you.

At this time though I ask that you keep them private. Haven't even considered how we feel about releasing this as a ripping tool to the public or how we feel about making one. If we get any progress then will be the time to consider the bigger picture.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #1541 by DarkSynopsis

Slippery Jim wrote: At this time though I ask that you keep them private. Haven't even considered how we feel about releasing this as a ripping tool to the public or how we feel about making one. If we get any progress then will be the time to consider the bigger picture.


No Worries, just for my own tinkering :)

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #1568 by DarkSynopsis
Going over the json for the basic_map again it seems like you need to start with the faces section and each number in the array correlates with different sections of file and following that I can pull the verts that makes up each face, not sure on all the values in the array so far but its a start.

Hopefully with more brushes some number in the array defines what brush the face is meant to belong to otherwise I wouldn't know how to separate them back into different section for the .map, right now with 1 brush we know all those verts go into one section.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #1571 by Copy-Cat
Replied by Copy-Cat on topic Research into .MAP format
I want to mention that the scn file only contains visible faces from brushes not affected by tiling, cell groups, adjacent brushes and other oddities that occur when the .map file gets converted to the scn.
What I am trying to say is, although you have the coords for 1 triangle(3verts) you only have 1 triangle of 1 face that can contain up to 10 triangles on a brush missing 5 faces.

If you gonna start small may I suggest adding 1 brush adjacent to the 1rst brush with the same texture and aligned.

Notice that the 2 brushes now become 1 brush and you will have only 12 triangles for 2 brushes when you convert back to map

if you separate the brushes you have 24 triangles for 2 brushes when you convert back to .map.

There are other oddities that will occur. This is one that I found to be troublesome when I recreated the original swat maps back into WC.

Please Log in or Create an account to join the conversation.

Moderators: DarkSynopsis
Time to create page: 0.266 seconds
Powered by Kunena Forum