Hiya, thanks for the prompt reply,
I just found the cause and got it fixed; I let some poly's sneak through that had just 3 points with the exact same coordinates but different UV... that won't work :). Dealing with files this size and error messages that vague, it gets a bit harder to...
I'm working with somewhat large ASM files with VTP1 poly's; over 300000 lines is no exception. BGLC.exe (8.00 and _9) calls it a day at 65534 apparently...
Are there any options or tweaks I can do to extend the range?
Or maybe instead of a new line for each point there is a separator...
If it's the apple look and specs you are attracted to, but are still "tied" to windows for your virtual flying pleasure, I suggest getting a Sony Vaio.
Much cheaper, better specs and much more stylish than the avarage dell or hp for the price.
I split my time between Win/mac/linux on various...
That is all a scenario I'm going to avoid for the moment.
I was just using the CFS1 texture mapping idea as a transport vehicle to develop the asm.addpoly and asm.write method. It was something I had been wondering about how it would look for years and years. To quickly make something...
Wow that is brilliant. :D I was staring myself blind on the bglc code... Strange thing is that when I ran the tool to create the same area with just a single texture (standard vshoresu.bmp from cfs2, so I was sure it was a valid VTP1 texture) it didn't show up either....
And when I opened the...
...I know at least someONE on this forum does :D
Anyway, I have this cfs2autocoast tool under development.
Right now I'm implementing its vtp1.asm.write method, and it is generating what looks to me like a completely valid ASM file, just like a LWMviewer-decompiled or ground2k4 vtp1 source...
Even so.... nice to have a link ready in case anyone ever asks ;)
I posted the article here: http://www.sim-outhouse.com/sohforums/showthread.php?p=406791#post406791
and will also re-post that on my own site.
Do you mind if I re-post your file on the SOH Design forum? I'll post both versions (mine has evolved a bit since the above post) so people will have a choice :), with a small tutorial.
I received your vtp1fix tool, but my replies to you bounced after a few days:
What I tried to say is that it is a LOT of code :D for a simple problem!!! But it works great!
Here's my interpretation of the solution; save as .vbs file, then you can drag-and-drop the ASM file (or...
1) Excellent news!
2) No problem. I'll supply the assembly (dll) when I'm done, you can include with your project, and then you can copy the function you already have to "export SBX file" to send the filestream instead of to "filename" directly to the cf2autocoast.SBXInputfilestream...
Unfortunately your algorithm is not going to work well for me; it would become too difficult to do the UV map and also roads/railways would become uneven.
The result I need to get is something like:
But the result I get is:
from this code:
Public Sub CreatePolygons()