gemrb/gemrb

Console: support original prefixes

Open

#2,231 opened on Dec 11, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (214 forks)auto 404
enhancementgood first issuesystem: GUI

Repository metrics

Stars
 (1,214 stars)
PR merge metrics
 (PR metrics pending)

Description

A user reported:

Anyway, I figured console commands would help me, but anytime I try to use them I get an 'invalid syntax' kind of error.

As for the cheat, I just want to spawn the character. I both typed out and copy/pasted this: CLUAConsole:CreateCreature("UDSOLA01") I saw that EE may use the entry C:CreateCreature("UDSOLA01") instead. Could that work in gemrb? Tech stuff isn't really my forte.

We could strip all these prefixes (see CLUA Console subpages for the prefixes, eg. CLUAConsole:, ctrlaltdelete:) from the originals before parsing the command for real, just so it's more likely to work if anyone else tries, since many of the commands do have analogues in GUIScript functions.

It's all in gemrb/GUIScripts/Console.py.

Contributor guide