City won't work

Invalid cmd error

User avatar
cody
MM2X Occasional User
MM2X Occasional User
Posts: 341
Registered for: 18 years 6 months
Location: United States
Contact:

City won't work

Postby cody » Fri Jul 25, 2014 12:47 am

I was trying to make a London version of Variant by replacing all the buildings with triangle fans (using the same vertices), but it won't work. :( Here's the ar for the current alpha (very early stages):

https://www.dropbox.com/s/lbdbi8aepq43cgo/ALondon.ar

It keeps spitting out an "Invalid cmd" error, followed by the more common "memMemory Allocator: find heap failed" error. Can you please tell me what I did wrong, and how to get it to work?

Off-Topic: Why is it that when I try to insert an emoticon, that it adds it at the end of my post, instead of where I want it to go?
My Member Number is prime. LOL!

aaro4130
MM2X Super Active User
MM2X Super Active User
Posts: 2405
Registered for: 15 years 11 months
Location: Canada
Been thanked: 1 time

Postby aaro4130 » Fri Jul 25, 2014 2:39 am

Well if you want a variant version you need to do a lot of editing.

Roofs have triangle fans, facades have vertices and UV mapping, so you need to remove all facades, and flatten all roofs and swap them to terrain versions of the triangles fans
[img]https://i61.tinypic.com/25zrngo.jpg[/img][color=white]
- Most creative active member
- Most smart active member
- Best MM2 innovation of the year
- Best programmer

[img]https://i60.tinypic.com/2m4c2h5.jpg[/img]
- Most helpful active member[/color]

User avatar
cody
MM2X Occasional User
MM2X Occasional User
Posts: 341
Registered for: 18 years 6 months
Location: United States
Contact:

Postby cody » Fri Jul 25, 2014 2:23 pm

That's what I'm doing. I'm sure it's the easiest way, if all the original vertices have to be used:

1. Open the city in PSDL Viewer.
2. Start with a block (i.e. Block 0x18).
3. Remove all facades (0x5e) and their respective bounds, leaving the roofs.
4. Add triangle fans, using the exact vertices of those roofs (i.e. 0x32, vertices: 0, 1, 2, 3).
5. Remove the roof attributes, leaving triangle fans in their place.
6. Repeat steps 1-5 for each block with buildings, until you've removed all the buildings.

I don't know what would cause an invalid cmd error.
My Member Number is prime. LOL!

aaro4130
MM2X Super Active User
MM2X Super Active User
Posts: 2405
Registered for: 15 years 11 months
Location: Canada
Been thanked: 1 time

Postby aaro4130 » Fri Jul 25, 2014 4:04 pm

MMClone can read it fine. So maybe try replacing london.psdl with londonA.psdl. It should work =/
Image
[img]https://i61.tinypic.com/25zrngo.jpg[/img][color=white]
- Most creative active member
- Most smart active member
- Best MM2 innovation of the year
- Best programmer

[img]https://i60.tinypic.com/2m4c2h5.jpg[/img]
- Most helpful active member[/color]