The Syd-Start2_7_CC_Doors Starter pack Help (Maniac Mansion Mania)

Started by Dr Fred Rubacant Edison, Sat 18/11/2006 15:13:09

Previous topic - Next topic
The Syd-Start2_7_CC_Doors Starter pack still will not work.

I didnt edited any of the code or script i just opened it and try to test it and this came up.

There was an error compiling your script. The problem was in 'Global script'



Error (line 173); Type mismatch: cannot convert 'string' to 'int'


Heres the code






function RemoveExtension (string location){
  //removes the extension of a string
  int length = StrLen (location);
  if (Extension (location) != 0) StrSetCharAt (location, length - 2, 0);
  return location;
}



Please help

Some say i need panels! and Some say i dont Need them.   WHERES THE DRUGS I'm going CRAZY. Plus I must have been on Drugs and a Maniac if i was going to name the game Maniacs Mansion.

What was i thinking!!!!!

Ashen

#1
It looks like you STILL haven't tried what I suggested the last two times you asked this. If you have, it should at least return a different error - if so, what is it.

I'll let this thread stand, as it's a seperate question to the ones in either of the other threads you've asked it in. In future, however, DON'T CROSS POST. Stick with a question - don't just ignore the answer someone's given you and keep asking it over and over.
I know what you're thinking ... Don't think that.

Khris

It's called 2_7 for a reason. It won't work with 2.72.
Download AGS 2.7, open the pack and you won't get any errors.

I won't release a 2.72 compatible version anytime soon.

You can try replacing the global script with a 2.72-compatible version, but you'll probably have to do it function by function.
Use AGS 2.72 to open a 2.72-compatible pack, copy the whole global script to a text editor, then close AGS.

Open AGS 2.72 again, load the Syd-pack(*) and try to save it. Now whenever an error message comes up, replace the function that's causing it with the one from the gs in the editor.

(*) Doing this might display errors about some of the rooms. Just click OK, but remember that those rooms are still saved in the old format and won't work properly. You'll have to open them in AGSEdit, correct their scripts and save them.

Some say i need panels! and Some say i dont Need them.   WHERES THE DRUGS I'm going CRAZY. Plus I must have been on Drugs and a Maniac if i was going to name the game Maniacs Mansion.

What was i thinking!!!!!

SMF spam blocked by CleanTalk