[MOD] [1.6] In-Game Console Mod (v1.4.1)

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 27 Mar 2012, 02:05

In-Game Console Mod

Synopsis

This Mari0 mod enables the use of an in-game console to enable cheats, hacks, etc. that are not in the original game. This console is similar to the console in several games, including Call of Duty and Skyrim.

Screenshots

Image

Image

Image

Commands

Press the ~ button to open and close the console.
Press Left Shift + ~ to open the full console. (Needs to be open to see the effects of some commands)

exit - Exits the game
grow - Grows Mario. Equivalent to getting a mushroom or fire flower.
shrink - Opposite of grow
pnts <amount> - Gives Mario the specified amount of points
invc - Toggles whether invincibility is on or not. Persists through world changes.
lives <amount> - Changes the amount of lives Mario has.
time <amount> - Sets the game time to the specified number
star - Equivalent to Mario getting a Star
die - Kills Mario :(
flag - Teleports Mario to the flag at the end of the level. (Doesn't work if there is no flag)
mc - Toggles Minecraft mode (You can use this to change the map to your liking)
gst <gamestate> - Changes the gamestate -- Use with caution!
version - Shows you the current version of the console
pull <variable> - Gives the value of any given variable. Ex. pull gamestate >> "menu" -- pull objects["player"][1].size >> 2
load <world> <level> <sublevel> <respawn> - Loads the level with the given information. (Leaving one blank will make it default to a preset value)
mcinv <blockID> - When in Minecraft mode, gives you blocks to place. (BlockID is the same as in the editor)
ent <entity name> <type> - Spawns entities. Use "entlist" command to see all spawnable entities. Invincible mode recommended before using this command.
lua <code> - Runs Lua code. Gives you an error message if it has an error, and bad code doesn't break the game.
coins <amount> - Sets the amount of coins Mario has
cheat <cheat name> - Toggles a cheat. List of cheat names: knockback, bullettime, hugemario, goombaattack, sonicrainboom, playercollisions, infinitetime, infinitelives
entlist - Shows a list of spawnable entities (Need full console open)
hat <hatID> - Changes Mario's hat. HatID is the same as in the options menu.
uw - Toggles underwater mode. (Allows you to fly)
help - Shows an in-game list of commands. (Need full console open)

Note: These commands currently only work for singleplayer (Or the first player, if there is more than one)

Download

Current Download
Download version 1.4.1 for Mari0 1.6

Previous Downloads
Download version 1.4 for Mari0 1.6
Download version 1.3 for Mari0 1.6
Download version 1.2 for Mari0 1.6
Download version 1.1 for Mari0 1.6
Download version 1.0 for Mari0 1.6

This download includes two modded files from the original Mari0 game. The files are: main.lua and mario.lua. Any other mod that changes either of these files will not be compatible with this mod.

To use this mod, you need to download the LÖVE engine, and the Mari0 source code. Merge the source code and the files that are given in the download, then run the game with LÖVE. (If you don't know how, look here.)

Planned Features
  • None. Feel free to suggest some.
Current Bugs
  • None found
Changelog

Version 1.4.1
  • Fixed entity spawning bug
Version 1.4
  • Added hat command
  • Added uw (underwater) command
Version 1.3
  • Added full console (LShift + ~)
  • Added in-game command list
  • Added entity list command
  • Made the console background darker for easier reading
Version 1.2
  • Using the "flag" command when there is no flag in the current level just does nothing instead of throwing an error
  • Added "ent" command for spawning entities
  • Added "cheat" command for activating cheats in-game
  • Added "coins" command for setting your coins
  • Added "lua" command for running code through the console
Version 1.1
  • "mc" command now changes Mario's animation
  • "INVINCIBLE" text is now drawn under the console
  • Using "shrink" when Mario is small doesn't send you into the floor
  • Moved more code into console.lua instead of sitting around in main.lua and mario.lua
  • Added "load" command for loading levels
  • Added "mcinv" command for giving yourself blocks while in Minecraft mode
  • Console now listens to Enter on the NumPad as well
  • When invincible mode isn't on and you get hit by an enemy, you now have your normal invincibility time
  • Console now displays the Mari0 version before the ">"
  • Better command system implemented
  • "die" command kills Mario, instead of just damaging him if he was Big Mario
  • Added "pull" command - See above
  • More random small changes
Version 1.0
  • Release
Last edited by coolbob44 on 20 May 2012, 23:38, edited 20 times in total.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 27 Mar 2012, 02:32

Wow, great work. I'll have to give the mod a download since it actually looks pretty good.

User avatar
Enderborn
Posts: 81
Joined: 07 Feb 2012, 01:10

Post » 27 Mar 2012, 03:26

Really, really, really nice mod, good job.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 27 Mar 2012, 04:12

Have you ever thought of adding a command that shows the list of commands on-screen? It would be really helpful and you could use a code like help, commands, codes, or list.

Edit: List of bugs I've found: :(
1.If you type "shrink" while you're already small mario it'll send you one block down (through the floor).
Image

2. When changing to minecraft mode, the pickaxe doesn't appear. If you die, you'll spawn with the pickaxe.
3. When spawning with the pickaxe, Mario's default red hat appears instead of the bald hat-less head it should use if you use a different hat. (Hats overlap partly)
Image

4. If you enable and disable invincible mode the "getting hurt" invincibility doesn't occur. (The words INVINCIBLE also appear.)
Last edited by Zlmpery on 27 Mar 2012, 04:47, edited 1 time in total.

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 27 Mar 2012, 04:38

Can you please elaborate on that fourth bug you found?

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 27 Mar 2012, 04:46

coolbob44 wrote:Can you please elaborate on that fourth bug you found?
Ooh, I didn't really explain it did I. Well, I believe that the code you wrote disables invincibility causing everything that makes you invincible to not occur. I don't think that includes star power because star power actually kills the enemies. What I mean by invincible is if you get hurt by an enemy.
Let's say your big mario and a goomba hits you. Instead of shrinking and becoming invincible for about 1.5 seconds like you should, the goomba just hits you again causing you to die.

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 27 Mar 2012, 04:54

Zlmpery wrote:
coolbob44 wrote:Can you please elaborate on that fourth bug you found?
Ooh, I didn't really explain it did I. Well, I believe that the code you wrote disables invincibility causing everything that makes you invincible to not occur. I don't think that includes star power because star power actually kills the enemies. What I mean by invincible is if you get hurt by an enemy.
Let's say your big mario and a goomba hits you. Instead of shrinking and becoming invincible for about 1.5 seconds like you should, the goomba just hits you again causing you to die.
Ah, thanks. I know exactly why that is happening, but I won't be able to fix it until Thursday night. I'll be sure to add it to the bug list, though.

User avatar
teryakisan
Posts: 53
Joined: 08 Mar 2012, 06:16
Contact:

Post » 27 Mar 2012, 05:01

Zlmpery wrote:Have you ever thought of adding a command that shows the list of commands on-screen?
In Console.lua @ line 62 add...

Code: Select all

elseif cmd == "help" then console.text = "help - This menu. \n exit - exits the game. \n grow - Grows Mario Equivelant to mushroom or flower.\n shrink - Opposite of grow.\n pnts <amount> - Gives Mario a specified amount of points.\n invc - Toggles whether invincibility is on or not. Persists through world changes. \n lives <amount> - Changes the amount of lives Mario has. \n time <amount> - Sets the game time to the specified number. \n star - Equivalent to Mario getting a Star. \n die - Kills Mario :( \n flag - Teleports Mario the flag at the end of the level. NOTE: This will throw an error if there is no flag in the level you are playing. \n mc - Toggles Minecraft mode (You can use this to change the map to your liking) \n gst <gamestate> - Changes the gamestate -- Use with caution! "
then modify line 70 to something like this...change the 200 parts to make it bigger or smaller...

Code: Select all

 love.graphics.polygon("fill", 10, 10, (400*scale)-10, 10, (400*scale)-10, 200, 10, 200)
Booyah. Insta-Help.

OR

Download the pre-edited console.lua
http://www.sendspace.com/file/r70njc

edit: press enter to clear before typing a command.

Image
Last edited by teryakisan on 27 Mar 2012, 11:06, edited 3 times in total.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 27 Mar 2012, 05:52

Ooh thanks, I'll use this until he updates his mod.

User avatar
teryakisan
Posts: 53
Joined: 08 Mar 2012, 06:16
Contact:

Post » 27 Mar 2012, 11:06

Here's some practically useful commands plus some fun stuff to play with in the console. Replace console.lua with this file...

http://www.sendspace.com/file/r70njc

type help or morehelp and have fun.

commands added:
morehelp - This menu.
mappack - loads the mappack menu.
edit - switch to level edit mode.
menu - Switch to main menu.
game - Start Mari0.
big - bigmario = true.
small - bigmario = false.
nograv - yacceleration = -80 (ceiling blocks suggested)
grav - yacceleration = 80 (resets gravity back to normal)
halfgrav - yacceleration = 40 (moon bounce!)

edit - wow bugs galore. edit screen goes auto-eraser and (anti) gravity is pretty whacked. Big and small suffer from the same placement issues as mentioned before. The code was really meant as more of a proof of concept for how easy to interact with the console than anything else. Im sure coolbob44's future updates will be 100x more awesome than this.

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 30 Mar 2012, 05:15

Fixed all of the bugs that were found, and added a few new things. I will try to work on some of the things that you guys mentioned soon as well.

User avatar
Lone Wolf
Posts: 228
Joined: 05 Mar 2012, 00:41
Contact:

Post » 30 Mar 2012, 05:41

Suggestion:

Noclip - Underwater mode and you can go through solid objects.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 30 Mar 2012, 05:50

I got another suggestion. How about a moon jump command? You keep going up as long as you hold the jump button.

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 30 Mar 2012, 05:56

Maybe, but if I add noclip mode, then I won't add moon jump because they would both do about the same thing. (Vertically, anyways)

Science
Posts: 4
Joined: 28 Mar 2012, 21:59

Post » 30 Mar 2012, 07:36

Hey,
I modded the console to show text that is being printed over the message() function,
You might want to check out my githib ;)

User avatar
12mari0
Posts: 19
Joined: 30 Mar 2012, 07:51

Post » 30 Mar 2012, 08:42

Ok Wow Good Job Man Good Job

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 31 Mar 2012, 05:12

Added a few more commands -- In-Game command list will be in the next update!

User avatar
12seth12
Posts: 139
Joined: 11 Mar 2012, 20:42

Post » 31 Mar 2012, 08:58

this is really awesome, just one thing though, whenever you spawn the entities, they kill you >_<

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 04 Apr 2012, 07:06

Added full console mode and in-game command list... Any ideas for new commands? (Other than the noclip/flying one)

User avatar
Lone Wolf
Posts: 228
Joined: 05 Mar 2012, 00:41
Contact:

Post » 04 Apr 2012, 16:14

Changehat <hat number> - will change to specified hat

EDIT: you could have 0 (zero) be no hat.

User avatar
Lexsym
Posts: 84
Joined: 04 Feb 2012, 05:32
Contact:

Post » 05 Apr 2012, 05:58

Code: Select all

laod 1 2 3 4
made me lol

User avatar
Flutter Skye
Posts: 1690
Joined: 08 Apr 2012, 17:54
Contact:

Post » 08 Apr 2012, 23:04

how to use this mod because there are only mario main and console lua

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 09 Apr 2012, 04:17

@Lexsym, Yeah, I noticed that too but I am too lazy to fix it

@supermarioportal2, Try reading the post :P

User avatar
Flutter Skye
Posts: 1690
Joined: 08 Apr 2012, 17:54
Contact:

Post » 09 Apr 2012, 08:43

i mean how to use this mod

smb64
Posts: 30
Joined: 03 Mar 2012, 20:18

Post » 17 Apr 2012, 00:41

i got this error http://sta.sh/0wu2gz6faf1 ya got any idea what i should do? p.s. i'm not use to editing LOVE files soz

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 19 May 2012, 17:57

Added the hat and flying commands. Sorry for the long wait.

User avatar
Lone Wolf
Posts: 228
Joined: 05 Mar 2012, 00:41
Contact:

Post » 20 May 2012, 08:23

coolbob44 wrote:Added the hat and flying commands. Sorry for the long wait.
Image

User avatar
Flutter Skye
Posts: 1690
Joined: 08 Apr 2012, 17:54
Contact:

Post » 20 May 2012, 10:41

eh can,t you make it to a love file than 3 files it would be easier

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 20 May 2012, 12:43

so you want him to do the work for you...
*Slow clap*

User avatar
Flutter Skye
Posts: 1690
Joined: 08 Apr 2012, 17:54
Contact:

Post » 20 May 2012, 13:20

xXxrenhoekxXx wrote:so you want him to do the work for you...
*Slow clap*
so... you are right

User avatar
Assasin-Kiashi
Posts: 643
Joined: 07 May 2012, 10:21
Contact:

Post » 21 May 2012, 10:16

about the invinciblity command, you need to fix it so that your immune to lazers too

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 21 May 2012, 10:40

Assasin-Kiashi wrote:about the invinciblity command, you need to fix it so that your immune to lazers too
that's not the mods fault
it's how the game's programmed Maurice made it so you die no matter what.

User avatar
Lone Wolf
Posts: 228
Joined: 05 Mar 2012, 00:41
Contact:

Post » 23 May 2012, 22:44

Thanks for the fixed entinty error. But if you spawn a mob at Mario's postition, it kills him.

User avatar
Assasin-Kiashi
Posts: 643
Joined: 07 May 2012, 10:21
Contact:

Post » 24 May 2012, 08:22

xXxrenhoekxXx wrote:
Assasin-Kiashi wrote:about the invinciblity command, you need to fix it so that your immune to lazers too
that's not the mods fault
it's how the game's programmed Maurice made it so you die no matter what.
i know but if its going to be invincible you'd expect it to be literally invincible wouldn't you?

User avatar
coolbob44
Posts: 14
Joined: 27 Mar 2012, 01:01

Post » 24 May 2012, 22:11

Lone Wolf wrote:Thanks for the fixed entinty error. But if you spawn a mob at Mario's postition, it kills him.
You are supposed to use the invincibility command before you spawn it

User avatar
greystorm100
Posts: 2
Joined: 01 Jun 2012, 05:42

Post » 13 Jun 2012, 04:59

I am new to this kind of stuff so may I ask, what the gamestate thing is?

User avatar
thatoneawesomeguy
Posts: 1
Joined: 16 Sep 2012, 22:08

Post » 16 Sep 2012, 22:12

broken link?

Post Reply