Quantcast

Jump to content

» «
Photo

Script crashes when savegame is loaded

7 replies to this topic
BigHomie
  • BigHomie

    Rat

  • Members
  • Joined: 03 May 2016
  • Germany

#1

Posted 2 weeks ago

Hey,

I wrote a little script adding a hotel room, where you can save. 

Here's the script:

Spoiler

 

Any help is greatly appreciated


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#2

Posted 2 weeks ago

Here's a big misstake

Player.CanMove($PALYER_CHAR false)

can you see it?

  • deltaCJ likes this

BigHomie
  • BigHomie

    Rat

  • Members
  • Joined: 03 May 2016
  • Germany

#3

Posted 2 weeks ago

Should it be 

Player.CanMove($PLAYER_CHAR) = False

?


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#4

Posted 2 weeks ago

Yes, it should always be like that.


BigHomie
  • BigHomie

    Rat

  • Members
  • Joined: 03 May 2016
  • Germany

#5

Posted 2 weeks ago

I think the problem with the script is that thread saving is enabled and the savedisc pickup is only created after movibg away from it Therefor after loading the savegame the issues are caused. I don't know how to fix it though

deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#6

Posted 2 weeks ago

How are you compiling this script?

Marker.Createiconwithoutsphere(mark 35 2236.0598 -1167.8082 1029.7969)

 

this should have commas:

 

Marker.Createiconwithoutsphere(mark, 35, 2236.0598, -1167.8082, 1029.7969)


BigHomie
  • BigHomie

    Rat

  • Members
  • Joined: 03 May 2016
  • Germany

#7

Posted 2 weeks ago

Well, it's compiled and works in game. The crash only occurs when loading a savegame that was done by the save pickup created in the script

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#8

Posted 2 weeks ago

Try it with this template: click

  • deltaCJ likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users