Take On Mars

Take On Mars

Explore and contribute to the world of science
Take On Mars utilizes Steam Workshop to bring you a virtually unlimited expanse of addons. These may include new locations to explore, custom vehicles to deploy, and even distinct scenarios to let you get the most out of Take On Mars. From custom sounds to additional models, everything is possible.
Gahad 3 23 Jan, 2019 @ 8:18am
Unhandled Exception TKOM.exe
Access violation
Class Vehicle_Handler
Function RadialMenuSetAction

From <scenario>.script file:
59 obj_transport = g_Objectives.FindObjectiveByName("obj_transport");

Error occurs when saving game. Locks up and crashes BUT completes the save (save game
does exist !)

https://photos.google.com/photo/AF1QipPdm2Z8eTgnT8fOnw4QssXtNT38NQ48B5f_lwJs

Thanks
Jeff
< >
Showing 1-6 of 6 comments
You have an error on line 59 in the .script file which is attempting to call (find/lookup/use) the obj_transport (The Cargo Truck) for an objective (Such as 'drive' the cargo truck to this spot) but it can't find or locate the proper lines to complete the objective in the scenario/map while saving.

To fix:

Try searching the .script file for
obj_transport = g_Objectives.FindObjectiveByName("obj_transport"); and either comment out the whole line by adding two forward slashes -> // in front of 'obj_transport' like this:

// obj_transport = g_Objectives.FindObjectiveByName("obj_transport");

OR

Add in the missing lines to complete the objective being called or remove the whole line altogether.

Also the link you posted doesn't work.. tried it twice.
Gahad 3 23 Jan, 2019 @ 9:31pm 
Hi MM... sorry about that URL sharing issue... This one should work... URL is very long... don't know why...

https://photos.google.com/share/AF1QipPe4M-N6S-M9Y4xUpwN5qmzB7d_tZ_DZj4FskIpV0lnqO0cs9etO3WHbPryjJ_HUg/photo/AF1QipMPuZXe18mogXFyJ5l7ai7JQ9n8A2bfHSDgUslD?key=TFlkeEJnX3BUbkdNLUFQMEdKNGlaWkxqVVhTeGNn

THE SCript I'm using is from TKOM scenario 6 ( _06_Mining_Site.script ) which can be found in your <installdir>\Scenarios
- I've made very few changes to the script because my coding is weak ( this is my classroom )
- I wil find a way to compare my script to the original with attention to line 59 and the obj_transport item
- I'm using Editplus and Visual Studio Code Version: 1.30.2
- Thank you Mr. Monochrome
Notepad++ is all your need for theTKOM files......
Check your log files.. they will tell you why a certain thing might have crashed and what line...

Step 9:

https://steamhost.cn/steamcommunity_com/app/244030/discussions/0/154642901283546556/

As you said comparing to the default one helps as well to find what might be missing.
Gahad 3 24 Jan, 2019 @ 12:24am 
I just made a few minor modifications (added seeds and changed from 1:1 to 1:12), played the entire scenario from beginning to end (no problems), and then sent the scenario to Steam.

Hope you subscribe. Thanks again for your help.
No problem. o/
< >
Showing 1-6 of 6 comments
Per page: 1530 50