Jump to content

Launching the application exe after saving something in the editor


photo

Recommended Posts

Posted

Hi there

 

I have some test project, where I'm primarily coding in C++. This works and I can launch the application through the exe I'm compiling. But as soon as I just save the world in the editor I can't launch the application from the executable anymore, it just remains a black screen. Only through the browser clicking on the run button i can see the demo scenery.

 

What does change with the save in the editor, what change the launch of the exe? I'm not changing anything in the world just click save world.

 

Kind regards,

Renato

Posted

Hi Renato,

 

Just tried to do the same thing with the latest 2.2.1 SDK under the Windows platform with a newly generated project and it seems that I can't reproduce such behavior. Could you please give us detailed step-by-step guide how to reproduce it?

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hey Andrey

 

Hope you're well!

 

Listen, I'm doing the following:

  1. create new project (test) in the browser
  2. open the vs2013 project
  3. insert a log message to the console, e.g. in the update method of AppWorldLogic.cpp 
  4. compile it (64bit)
  5. launch the test.exe
  6. it is working as expected
  7. close the vs2013 project
  8. open the editor from the unigine browser
  9. ctrl+s to save the world
  10. exit the world
  11. launch the test.exe
  12. shows only a black screen

Kind regards,

Renato

Posted

Hi Renato,

 

More likely that happens because of the missing startup arguments. You can open console and execute command world_load <your_world_name> and everything will work just fine.

 

What you can use:

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hi Andrey

 

I see I see. In our current implementation we are using the embedded engine startup.

 

But just for my understanding, where did you configure that the launch via vstudio (F5) works? It has to load the world as well, right?

 

The *.bat file doesn't work either after saving the world. Must also be something with the arguments, I suppose..

 

Kind regards,

Renato

Posted

Hi Renato,

 

You can check startup arguments for project inside Visual Studio: Project -> <Project> Properties... -> Configuration Properties -> Debugging -> Command Arguments.

 

Unfortunately, it seems that I can't reproduce this issue on my side - everything is working fine here.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...