Innerspace Scripting problem

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
gp1001
GamingTools Subscriber
Posts: 8
Joined: Sat Oct 23, 2004 2:22 pm

Innerspace Scripting problem

Post by gp1001 » Tue Jun 20, 2006 3:07 pm

Lax,

This script doesnt want to work after one of the ISX updates.
I am not sure which update.

This is what i get in the console window:

Code: Select all

TELL RECEIVED!
The APICall command is deprecated and will be removed.  Use System:APICall instead.
Dumping script stack
--------------------
-->C:/Program Files/InnerSpace/Scripts/tell.iss:14 PlaySound() APICall ${System.GetProcAddress["WinMM.dll","PlaySound"].Hex} Filename 0 Math.Dec[22001]
C:/Program Files/InnerSpace/Scripts/tell.iss:31 ReceivedTell() call PlaySound "C:\\Program files\\Innerspace\\Sounds\\PHASER.wav"
C:/Program Files/InnerSpace/Scripts/tell.iss:22 main() ExecuteQueued
So this is my script:

Code: Select all

#macro ProcessTriggers() 
if "${QueuedCommands}" 
{ 
  do 
  { 
     ExecuteQueued 
  } 
  while "${QueuedCommands}" 
} 
#endmac 

function PlaySound(string Filename) 
{ 
APICall ${System.GetProcAddress["WinMM.dll","PlaySound"].Hex} Filename 0 Math.Dec[22001] 
} 

function main() 
{ 
  AddTrigger ReceivedTell "\\aPC @*@ @*@:@sender@\\/a tells you,@text@" 
  do 
  { 
     ProcessTriggers() 
     waitframe 
  } 
  while 1 
} 

function ReceivedTell(string Line)  
{  
  echo TELL RECEIVED!
  call PlaySound "C:\\Program files\\Innerspace\\Sounds\\PHASER.wav"  
}
I tried to replace the APICall line with:

Code: Select all

System:APICall ${System.GetProcAddress["WinMM.dll","PlaySound"].Hex} Filename 0 Math.Dec[22001]
And i get this error:

Code: Select all

No such 'system' method 'APICall 76b5a8f7 Filename 0 Math'
Error parsing data sequence '.Dec[22001]'
Dumping script stack
--------------------
-->C:/Program Files/InnerSpace/Scripts/tell.iss:14 PlaySound() System:APICall ${System.GetProcAddress["WinMM.dll","PlaySound"].Hex} Filename 0 Math.Dec[22001
C:/Program Files/InnerSpace/Scripts/tell.iss:31 ReceivedTell() call PlaySound "C:\\Program files\\Innerspace\\Sounds\\PHASER.wav"
C:/Program Files/InnerSpace/Scripts/tell.iss:22 main() ExecuteQueued
Any suggestions?

gp1001
GamingTools Subscriber
Posts: 8
Joined: Sat Oct 23, 2004 2:22 pm

Post by gp1001 » Tue Jun 20, 2006 3:10 pm

Amadeus pointed out that there isnt any documentation on the Wiki for the System:APIcall method.

Post Reply