Ideas for new IPC-Commands [Request to 5438A38A]
Posted: 27 Feb 2017, 12:13
I have some new ideas for new IPC-Commands.
I made a short design. I know it isn't possible to take it over completly, but i hope you know, what i mean.
Get Game-state:
Get Used-Object-List: GGI|GOL
It returns a list of used objects.
Possible return-value: GGIGOL|*Block|*Background|*NPC
* = the list of used IDs of the used objects
Get Custom-Graphics-List: GGI|GOL
It returns a list of all used custom graphics.
Possible return-value: GGI|GOL|*
* = the list of all used custom graphics (includes used graphics in scripts)
Window-Data:
Set Window-State: SWD|title|height|wide|x|y|fullscreen
title = window title [***urlencode!***]
height = height of the window
wide = wide of the window
x = x-position on Desktop
y = y-position on Desktop
fullscreen = enable fullscreen (TRUE or FALSE)
Get Window-State: GGI|GWD
Possible return-value: GGI|SWD|title|height|wide|x|y|fullscreen
title = window title [***urlencode!***]
height = height of the window
wide = wide of the window
x = x-position on Desktop
y = y-position on Desktop
fullscreen = enabled fullscreen (TRUE or FALSE)
Player State:
Set Player State (Extended Original): PM|idn|pid|pr|xpos|ypos|action
idn:1 = player-1, 2 = player-2
pid: player's id: 0=Mario 1=Luigi 2=Peach 3=Toad 4=Link
pr: powerup.
xpos: The x position of the player
zpos: The z position of the player
action: Current event of the player (like jumping, running, walking or standing)
Get Player State (Extended Original): GGI|PM
Possible return-value: GGI|PM|idn|pid|pr|xpos|ypos|action
idn:1 = player-1, 2 = player-2
pid: player's id: 0=Mario 1=Luigi 2=Peach 3=Toad 4=Link
pr: powerup.
xpos: The x position of the player
zpos: The z position of the player
action: Current event of the player (like jumping, running, walking or standing), so the player do the animation of the event.
Save States:
Save State: SSS|filename
It saves the current RAM to file. [***urlencode!***]
filename = The file where the savestate should be saved.
Load State: SSL|filename
It loads the state from file to the RAM. [***urlencode!***]
filename = The file where the savestate is saved.
Cheat-Codes:
Enable Cheat-Code: CEE|cheatcodestring
cheatcodestring = the cheat code [***urlencode!***]
Disable Cheat-Code: CED|cheatcodestring
cheatcodestring = the cheat code [***urlencode!***]
Toogle Cheat-Code: CET|cheatcodestring
Just, if toogle is possible. This wouldn't work for the 1-Up-Rain or the Bomb-Rain e.g.
cheatcodestring = the cheat code [***urlencode!***]
Disable/Enable Cheat-Code-System: CEE|bool
bool = "TRUE" (Enable Cheat-Code-System) or "FALSE" (DisableCheat-Code-System)
Is Cheat-Code-System enabled: GGI|CEE
Possible return-value: GGI|CEE|bool
bool = "TRUE" or "FALSE"
filename = filename of the file[/i]
I made a short design. I know it isn't possible to take it over completly, but i hope you know, what i mean.
Get Game-state:
Get Used-Object-List: GGI|GOL
It returns a list of used objects.
Possible return-value: GGIGOL|*Block|*Background|*NPC
* = the list of used IDs of the used objects
Get Custom-Graphics-List: GGI|GOL
It returns a list of all used custom graphics.
Possible return-value: GGI|GOL|*
* = the list of all used custom graphics (includes used graphics in scripts)
Window-Data:
Set Window-State: SWD|title|height|wide|x|y|fullscreen
title = window title [***urlencode!***]
height = height of the window
wide = wide of the window
x = x-position on Desktop
y = y-position on Desktop
fullscreen = enable fullscreen (TRUE or FALSE)
Get Window-State: GGI|GWD
Possible return-value: GGI|SWD|title|height|wide|x|y|fullscreen
title = window title [***urlencode!***]
height = height of the window
wide = wide of the window
x = x-position on Desktop
y = y-position on Desktop
fullscreen = enabled fullscreen (TRUE or FALSE)
Player State:
Set Player State (Extended Original): PM|idn|pid|pr|xpos|ypos|action
idn:1 = player-1, 2 = player-2
pid: player's id: 0=Mario 1=Luigi 2=Peach 3=Toad 4=Link
pr: powerup.
xpos: The x position of the player
zpos: The z position of the player
action: Current event of the player (like jumping, running, walking or standing)
Get Player State (Extended Original): GGI|PM
Possible return-value: GGI|PM|idn|pid|pr|xpos|ypos|action
idn:1 = player-1, 2 = player-2
pid: player's id: 0=Mario 1=Luigi 2=Peach 3=Toad 4=Link
pr: powerup.
xpos: The x position of the player
zpos: The z position of the player
action: Current event of the player (like jumping, running, walking or standing), so the player do the animation of the event.
Save States:
Save State: SSS|filename
It saves the current RAM to file. [***urlencode!***]
filename = The file where the savestate should be saved.
Load State: SSL|filename
It loads the state from file to the RAM. [***urlencode!***]
filename = The file where the savestate is saved.
Cheat-Codes:
Enable Cheat-Code: CEE|cheatcodestring
cheatcodestring = the cheat code [***urlencode!***]
Disable Cheat-Code: CED|cheatcodestring
cheatcodestring = the cheat code [***urlencode!***]
Toogle Cheat-Code: CET|cheatcodestring
Just, if toogle is possible. This wouldn't work for the 1-Up-Rain or the Bomb-Rain e.g.
cheatcodestring = the cheat code [***urlencode!***]
Disable/Enable Cheat-Code-System: CEE|bool
bool = "TRUE" (Enable Cheat-Code-System) or "FALSE" (DisableCheat-Code-System)
Is Cheat-Code-System enabled: GGI|CEE
Possible return-value: GGI|CEE|bool
bool = "TRUE" or "FALSE"
filename = filename of the file[/i]