UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: ERAWEX on March 06, 2020, 04:38:04 pm

Title: Script Runtime Error
Post by: ERAWEX on March 06, 2020, 04:38:04 pm
Hi,

While adding a new weapon to one of my maps I ran into a script runtime error.

while compiling it gives me this error:
ERROR: xmodel 'dempsey_viewhands' not found
    failed loading xmodel 'dempsey_viewhands' for asset 'sp/mortar_strike' found in source file '../zone_source/mod.csv'
    failed loading 'dempsey_viewhands' of type 'xmodel' found in source file '../zone_source/mod.csv'
    failed loading 'sp/mortar_strike' of type 'weapon' found in source file '../zone_source/mod.csv'

(https://imgur.com/a/5vNxmE7)When compiling is finished it tells me that there is a script runtime error and that it cannot find the item "mortar_strike" or the weapon itself.

Would anyone know what's wrong?

ERAWEX(https://imgur.com/a/5vNxmE7)

This is the console: https://imgur.com/a/5vNxmE7 (https://imgur.com/a/5vNxmE7)
Title: Re: Script Runtime Error
Post by: klevi on March 06, 2020, 09:29:51 pm
Make sure you're correctly following whatever tutorial you're actually following, and if i am not wrong, runtimes migt also be caused because you're running your map with devmap, so just try to normal run  it from the console, map mapname.
Title: Re: Script Runtime Error
Post by: ERAWEX on March 07, 2020, 01:44:05 pm
Thank you for your reply.

I am certain that I followed the tutorial correctly.

Runnign the map normally does get rid of the error itself but the weapon does not appear in the map. I tried to optain it with "give all", or just by spinning the box and so on.

Could it be that I am missing assets? Or that I have added the weapon incorrectly in the _weapon file or dlc3_code file?

The tutorial does not specify in which way you need to add it to those files.

ERAWEX