Messed with the Verbs GUI!

Started by Nadarian, Mon 20/07/2020 11:28:55

Previous topic - Next topic

Nadarian

Hi there again!

My very first game was about 90% completed (I had to ask some things here, but got it quite fast with near zero scripting knowledge!), but then after the lockdown here in Spain, I had to go back to work and left the game as it was.

Now I wanted to polish some final details... and completely messed the verbs GUI. I started from a Tumbleweed template, and in the end I saw I was only working with 3 verbs: Use, Pick up and Look at.
I erased all the other buttons and tried to customize the 3 I was using, and then I noticed the mess I did in the crazy long VerbGUI script. To make things worse, the game was saved with no other backups to restore my progress before the mess.


Then, I created a new Tumbleweed template game, and tried to remake all the buttons in my game copying the exact same parameters from the new template. After that, when I try to play the game, there's still an error in the VerbGUI script, line 674:

Code: ags

  else if (new_action == eGA_LookAt) mouse.Mode=eModeLookat;


So I guess there's something more I have to change to the new Look at verb I created, but I really don't know what is it.

If I finally get my game running again... I'll have to ask a couple things more about this topic, and see if I can add the changes I'd like to add. (roll)


Thanks a lot in advance for your time!
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Khris

Soooo.... what's the error message?

Cassiebsg

I'm not familiar with this template, but I'm sure that instead of just saying that you get an error in that line, you should post the exact error message. That'll make those familiar with the template (or just expert coders) identify and fix the error for you.

PS. Khris jumped in before I could post...  :-[
There are those who believe that life here began out there...

Nadarian

True, sorry about that!!

The error reads:  Error (line 674): undefined symbol 'eModeLookat' in the VerbGui.asc

Then, line 674 reads what I posted earlier. This happened after erasing all the buttons in the GUI, creating new verbs, and then erasing everything again and trying to create the same buttons with the same properties copied from a new template. But clearly there's something I'm missing.
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Crimson Wizard

Quote from: Nadarian on Mon 20/07/2020 14:19:33
The error reads:  Error (line 674): undefined symbol 'eModeLookat' in the VerbGui.asc

eModeLookat is a default cursor name for "look" command. Have you renamed existing cursor(s)?

Nadarian

#5
Quote from: Crimson Wizard on Mon 20/07/2020 14:22:48
Quote from: Nadarian on Mon 20/07/2020 14:19:33
The error reads:  Error (line 674): undefined symbol 'eModeLookat' in the VerbGui.asc

eModeLookat is a default cursor name for "look" command. Have you renamed existing cursor(s)?

That's exactly what I did, and didn't remember I did, and.... that was the cause of all my problems   :~(
Thanks Crimson Wizard..!! Now I noticed I ALSO messed all the button ID's, so I erased EVERYTHING including inventory, inventory scroll buttons... and remade everything again.

Now my GUI is working perfectly, and learned that the best way to get rid of all the action verbs i didn't need was simply... to turn them invisible  (roll)


After all this, I'm back to trying to solve my main concern: I started writting and scripting my game in my mother tongue, which isn't English, it's Catalan. I have translated almost everything already into English and Spanish too, but I'm having a bad time trying to guess how to change the language in two elements in the main game (I'm posting a pic).

In one hand, verbs sprites. Although I use the sprites where the verbs are written in Catalan, the game always shows the English version (no matter what language I choose in the setup). How can you set what sprites are shown depending on the language you set to play the game? The template offers you verbs sprites in many different languages, but they never change.

And on the other hand, I'd need to change the language in another thing in the main game, so I can translate it later into the other languages. This is, the verbs that are shown next to the cursor when you point things after selecting an action. They are also shown in English by default, and I don't know where in the script I can rewrite them without messing everything again.

Pissarra" border="0
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

SMF spam blocked by CleanTalk