Jump to content

[SOLVED] How to update terrain to new format?


photo

Recommended Posts

The terrain file format has been changed as well, please use the upgrade script: utils/Upgrade/terrain.usc.

 

 

So how do I do this?

 

The online documentation only says this:

 

 
Running USC on Windows

To use Interpreter on Windows, follow these steps:

  1. Create a script to be executed and save it with *.usc extension.
  2. Associate usc files with <UnigineSDK>/bin/usc_*.exe. Depending on the postfix, it can be either 32-bit (_86) or 64-bit, debug (d) or release (no postfix) version of the Interpreter.

 

So could someone please explain me how to use the terrain.usc file

 

Link to comment

Hi Rob,

 

Please, check this topic https://developer.unigine.com/forum/topic/2041-solved-problem-with-upgradescript/

 

In few words: 

  1. Copy terrain.usc and usc interpreter tool to the folder with terrain.ter0000, terrain.ter0001 files;
  2. In terminal (command line) execute following commands:

    usc terrain.usc terrain.ter0000
    usc terrain.usc terrain.ter0001
    ...

Thanks!

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

Link to comment

I copied the usc_x64.exe and the terrain.usc files to the folder containing my terrain files (terrain.ter0000 etc)

and when I open command line and type the following and execute it:

usc_x64 terrain.usc TerrainGame.ter0000 


Nothing happens not even an error or anything, when I only type usc_x64 it does find the script interpreter

 

So what am I doing wrong?

Link to comment

  • Copy usc_x64 & terrain.usc to folder with terrain

Open command line 

cd path/to/the/terrain/folder/with/terrain

usc_x64.exe terrain.usc TerrainGame.ter0000  

It's work for me

 

Link to comment

 

  • Copy usc_x64 & terrain.usc to folder with terrain
  • Open command line 
  • cd path/to/the/terrain/folder/with/terrain
  • usc_x64.exe terrain.usc TerrainGame.ter0000  

It's work for me

 

I do this but it doesnt seem to work, now I tried it on the Gameterrain.ter file the one without the numbers behind it and it works but as soon as I try to open the world the editor seems to crash

So the script only works on the GameTerrain.ter file without the numbers but something corrupts and makes it impossible to open my environment

 

Im lost here...

Link to comment

Hi Rob,

 

Please, try to use attached *.usc script.

 

Thanks!

 

That one does work but I converted all the files but still the terrain wont show ingame, I cant seem to convert the first .ter file without the numbers behind it. All the other ones are converted

 

Is this why I dont see my terrain?

Link to comment

Rob, 

You can use your previos .usc script to upgrade *.ter file. And attached one to upgrade *.ter000x files. This should do the trick.

 

I just tried this but the older file doesnt seem to work either, could you provide me with an older .usc script that does work on the .ter file?

Link to comment

Hi Rob,

 

There is short manual how to update your terrain files:

  1. From latest SDK run terrain.usc script via usc-interpreter on your *.ter file:

    usc_x64 terrain.usc TerrainGame.ter
     
  2. Copy terrain.usc to terrain_new.usc;
  3. Open terrain_new.usc in text editor and comment lines from 23 to 105 (via /* on line 23 and */ on line 105);
  4. Uncomment lines from 106 to 209 (delete /* 20130508 and * from lines 106 and 107; delete */ on line 209);
  5. Save file;
  6. Run terrain_new.usc script on your *.ter000x files:

    usc_x64 terrain_new.usc TerrainGame.ter0000
    usc_x64 terrain_new.usc TerrainGame.ter0001
    ...


     
  7. Run terrain.usc script on your *.ter000x files again:

    usc_x64 terrain.usc TerrainGame.ter0000
    usc_x64 terrain.usc TerrainGame.ter0001
    ​...

If it is hard to for you to comment and uncomment lines, I've made terrain_new.usc, you can find it in attachement. 

 

Thanks!

terrain_new.zip

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

Link to comment
×
×
  • Create New...