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 22 November 2017 - 10:44 AM

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 22 November 2017 - 05:06 PM

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 23 November 2017 - 04:50 PM

Should it be 

Player.CanMove($PLAYER_CHAR) = False

?


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#4

Posted 23 November 2017 - 11:39 PM

Yes, it should always be like that.


BigHomie
  • BigHomie

    Rat

  • Members
  • Joined: 03 May 2016
  • Germany

#5

Posted 24 November 2017 - 06:39 PM

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 24 November 2017 - 11:42 PM

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 25 November 2017 - 09:46 PM

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 26 November 2017 - 06:48 PM

Try it with this template: click

  • deltaCJ likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users