L3dt >2048 exporter bug + fix?
by Skylar Kelty · in Torque Game Engine Advanced · 08/23/2007 (2:10 am) · 3 replies
Hello,
The >2048 warning cancels the operation even if you click yes saying you do want to proceed.
I belive the reason for this is that the code says IDOK, when it should say IDYES
on the following lines in main.cpp:
414, 437
I cant test however beacuse I cant compile (afx - I dont have Visual Studio, I have the express editions)
Could someone please compile and send?
EDIT: Scratch that, zeolite 2.4 is being nicer to me and Im compiling :D, will let you know...
The >2048 warning cancels the operation even if you click yes saying you do want to proceed.
I belive the reason for this is that the code says IDOK, when it should say IDYES
on the following lines in main.cpp:
414, 437
I cant test however beacuse I cant compile (afx - I dont have Visual Studio, I have the express editions)
Could someone please compile and send?
EDIT: Scratch that, zeolite 2.4 is being nicer to me and Im compiling :D, will let you know...
About the author
#2
08/23/2007 (9:37 am)
So we can use the atlas2 with > 2048 HF exported without any problem in game? Or just bypass the warning here?
#3
08/23/2007 (10:09 am)
Change those lines, then recompile the plugin. You'll still get the warning, but now when you click YES it will actually go and export the terrain like it should. It appears to work fine.
Torque 3D Owner Mark Dynna
if(res != IDOK) { theAPI.ReportError("L3DT Atlas Export - user cancelled export after >2048 HF warning."); return false; }toif(res != IDYES) { theAPI.ReportError("L3DT Atlas Export - user cancelled export after >2048 HF warning."); return false; }Sheesh, I don't know whether to laugh or cry. No one caught that?
Kenneth Holt, if you are reading this please send me an email. I will test any further Atlas plugin development for free. Obviously the developers and QA are far too overworked in order to not catch something like this.
PS Be sure to change the if statement just above on line 414 for the very small map dialog test.