TorqueFan Posted June 12, 2015 Share Posted June 12, 2015 (edited) Recently I was launching a dedicated server for testing of a mission and it failed with the following error message at the command line: Format GFXDXT1 not supported with specified profile. Format GFXFormatB8G8R8A8 not supported with specified profile. Doing a little digging, I believe the issue is the dedicated server using the "GFXNullDevice" profile. Right. So the dedicated server shouldn't need to render out any billboards, is there a way to disable the call to create those billboards on a dedicated build?If any shapes using billboards are excluded, the dedicated server launches fine. Although those billboards are a lifesaver for client rendering! Any ideas? Edited June 12, 2015 by TorqueFan Quote Link to comment Share on other sites More sharing options...
LukasPJ Posted June 12, 2015 Share Posted June 12, 2015 Do you spawn these billboards manually or are they a stock feature that you're using? (Not too much into that side of the engine)Could you possibly share an example of one of the shapes that causes a crash when not commented out? Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted June 12, 2015 Author Share Posted June 12, 2015 Thanks for the reply Lukas. You forced me to examine the source art, and as a result I have a new lead on this problem.I'll get back to you here when I finish tracking it down :D Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted June 12, 2015 Author Share Posted June 12, 2015 Okay after much trial and error, I assumed it was the terrain...then I assumed it was a script error...then I was going to blame the billboards again...It is the spawn position! If the spawn position is anything other than 0, 0 on x,y the dedicated server will crash! I'm not sure how this relates to the shapes in the scene (more testing is required). Perhaps different view angles/distances trigger certain billboards to show that otherwise would not? @LukasPJ It's a stock feature. The source art uses the bb prefix for the LOD node to create billboards. You can see this in the defaulttree.DAE example model. Quote Link to comment Share on other sites More sharing options...
LukasPJ Posted June 12, 2015 Share Posted June 12, 2015 I'm curious, can you replicate this in stock, with stock assets? Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted June 12, 2015 Author Share Posted June 12, 2015 I'm curious, can you replicate this in stock, with stock assets? I just got back to look at this and, yes, as a matter of fact I did finally discover the real origin of the problem. Throw all of that above out the window, it matters not.The problem originates if you open a .mis file with the Torque World Editor and then save the .mis file from within the editor. To replicate it: Launch stock Torque3D 3.7 (64 bit build) Launch the 'Empty Terrain' mission (any mission should work). Once in the mission, hit F11 to go into the World Editor. Alter or change anything in the mission, and then click File -> Save Level. Exit Torque. Setup a .bat file to launch the executable with the -dedicated parameter and for the -mission parameter use the 'Empty Terrain.mis' file you just saved in the World Editor. The cmd window should give the error about not supporting the GFX formats (tested in Windows 8.1 and 7 so far). So now we know the 'why' of what's causing it, now just to find the 'how' to fix it :) I can take the same .mis file, open it with a text editor, alter any fields and save the file without the dedicated launch problem. So it does certainly appear that something in the World Editor's save function is presenting a problem. That all being said, is there perhaps a 'best practice' for building dedicated builds to avoid any issues that could arise from the Editor tools? I mean, after all, when it's all said and done the tools wouldn't be included with the dedicated build of course. Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted June 15, 2015 Author Share Posted June 15, 2015 I haven't had time to dig deeper into the source to find out what's caused this dedicated server breakage when saving with the World Editor.I do, however, have a couple updates: The issue isn't present in T3D 3.6.2. The issue doesn't occur if there is no terrain in the level being saved. Currently I'm making alterations using the World Editor, saving the mission, then just copying the changes over with a text editor to a backup copy of the .mis file. As you can imagine, this is rather cumbersome but it gets the job done for now until the issue is sorted.I hadn't been using terrain on these particular levels, although I am almost certain any terrain I am going to have to generate using a T3D build earlier than 3.7rc or else the resulting saved terrain will cause a problem when trying to launch a dedicated server. Quote Link to comment Share on other sites More sharing options...
rlranft Posted June 15, 2015 Share Posted June 15, 2015 Time to start diffing the code to see where it broke... Quote Link to comment Share on other sites More sharing options...
Azaezel Posted June 16, 2015 Share Posted June 16, 2015 You got https://github.com/GarageGames/Torque3D/pull/1321/files included your end? Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted June 16, 2015 Author Share Posted June 16, 2015 Nice, that's got it sorted. Thanks Az! Quote Link to comment Share on other sites More sharing options...
Duion Posted October 30, 2015 Share Posted October 30, 2015 What setup are you running? Does the dedicated server build work for you or are you using a regular one only launched as dedicated? What operating system are you using it with? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.