Fire Mario colors?[Solved]

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
Mariobros2
Posts: 293
Joined: 03 May 2012, 20:10
Contact:

Post » 27 Aug 2012, 18:02

Can someone tell me, in which .LUA file and in which line, can I change fire Mario's colors.
Thanks to TheSeek, who helped me with this. Topic Closed.
Last edited by Mariobros2 on 28 Aug 2012, 10:57, edited 1 time in total.

FaycalMenouar
Posts: 1069
Joined: 11 May 2012, 18:00

Post » 27 Aug 2012, 20:14

fire mario ? you mean fireballs ??? it's not in LUA it's a .png file you can modify via paint or photoshop .

User avatar
Mariobros2
Posts: 293
Joined: 03 May 2012, 20:10
Contact:

Post » 27 Aug 2012, 20:16

FaycalMenouar wrote:fire mario ? you mean fireballs ??? it's not in LUA it's a .png file you can modify via paint or photoshop .
I mean fire Mario colors.
Last edited by Mariobros2 on 27 Aug 2012, 20:22, edited 1 time in total.

FaycalMenouar
Posts: 1069
Joined: 11 May 2012, 18:00

Post » 27 Aug 2012, 20:22

you mean mario after he gets that fire flower ? idk sorry dude .

User avatar
Mariobros2
Posts: 293
Joined: 03 May 2012, 20:10
Contact:

Post » 27 Aug 2012, 20:23

FaycalMenouar wrote:you mean mario after he gets that fire flower ? idk sorry dude .
Don't worry. I know you don't know lua. Besides if anyone knows this game better it's Maurice.

FaycalMenouar
Posts: 1069
Joined: 11 May 2012, 18:00

Post » 27 Aug 2012, 20:26

yeah i know nothing about LOVE and LUA but i'm pretty sure it's mario.lua or the .lua that take cares of the powerups IDK , check out mario.lua press Ctrl+F and search mario fire flower something like that . good luck :)

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 27 Aug 2012, 20:58

FaycalMenouar wrote:yeah i know nothing about LOVE and LUA but i'm pretty sure it's mario.lua or the .lua that take cares of the powerups IDK , check out mario.lua press Ctrl+F and search mario fire flower something like that . good luck :)

IIRC, variables.lua. Or game.lua.

FaycalMenouar
Posts: 1069
Joined: 11 May 2012, 18:00

Post » 27 Aug 2012, 21:17

Turtle95 wrote:
FaycalMenouar wrote:yeah i know nothing about LOVE and LUA but i'm pretty sure it's mario.lua or the .lua that take cares of the powerups IDK , check out mario.lua press Ctrl+F and search mario fire flower something like that . good luck :)

IIRC, variables.lua. Or game.lua.
yeah i told you guys i know nothing about LUA ^^

User avatar
TheSeek
Posts: 486
Joined: 21 Mar 2012, 06:31

Post » 27 Aug 2012, 21:56

found
main.lua, line 1115

Code: Select all

starcolors[3] = {{252, 216, 168}, {216,  40,   0}, {252, 152,  56}}
and line 1118

Code: Select all

flowercolor = {{252, 216, 168}, {216,  40,   0}, {252, 152,  56}}
change the RGB values to whatever you want and you're done.
P.S.: the values must be identical in both lines, or else fire mario will have different color after the effect of a star ends(if mario grabs a star when he's in fire mario "state")

also, for Maurice if he'll ever read this:
since

Code: Select all

self.size == 1 is mario
self.size == 2 is super mario(big mario)
self.size == 3 is fire mario
and

Code: Select all

if self.size == 3 then
			self.colors = flowercolor
then why changing just the "flowercolor"" RGB values doesnt affect fire mario colors(has effect just after the end of the startime), while changing just the "starcolors[3]" affect fire mario(and has no effect after the end of the startime)?
just changing the RGB values on both lines makes it working properly.

User avatar
BobTheLawyer
Posts: 2232
Joined: 01 May 2012, 21:00

Post » 28 Aug 2012, 01:24

FaycalMenouar wrote:
Turtle95 wrote:
FaycalMenouar wrote:yeah i know nothing about LOVE and LUA but i'm pretty sure it's mario.lua or the .lua that take cares of the powerups IDK , check out mario.lua press Ctrl+F and search mario fire flower something like that . good luck :)

IIRC, variables.lua. Or game.lua.
yeah i told you guys i know nothing about LUA ^^
He was more wrong.

User avatar
LightningFire
Posts: 1828
Joined: 10 Mar 2012, 17:24
Contact:

Post » 28 Aug 2012, 04:16

@TheSeek Do you know how can I change fire mario's color to the player's custom color?

User avatar
TheSeek
Posts: 486
Joined: 21 Mar 2012, 06:31

Post » 28 Aug 2012, 05:52

LightningFire wrote:@TheSeek Do you know how can I change fire mario's color to the player's custom color?
nope.

User avatar
Mariobros2
Posts: 293
Joined: 03 May 2012, 20:10
Contact:

Post » 28 Aug 2012, 08:42

@TheSeek Thanks for the help. Now I can continue moding.
*Edit* Works 100% Even though I don't know anything about lua, I can still do small mods like this.

Chippy348
Posts: 438
Joined: 19 Apr 2012, 17:56

Post » 28 Aug 2012, 11:37

LightningFire wrote:Do you know how can I change fire mario's color to the player's custom color?
Even though I do know anything about Love or Lua, by skimming through Mari0's lua files, I actually learned a bit...
And I know how to make Fire Mario's color to player's custom color, through Main.lua and Mario.lua
But marios only keep their "Flower colors" after get a star or pass a level, TheSeek said this already

Main.lua
Line 1118 (or somewhere around it), change it to

Code: Select all

flowercolors = {}
flowercolors[1] = {{147,  15,  15}, {0, 0, 0}, {77,  9,  9}} <- random color for example
flowercolors[2] = {{ 34,  34,  34}, {255, 255, 255}, { 17,  17,  17}} <- same as above
flowercolors[3] = custom flower color (something like above)
flowercolors[4] = something like above
Mario.lua
Various lines, just search for "flowercolor" and change all of those to "flowercolors[self.playernumber]"

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 28 Aug 2012, 16:48

TheSeek wrote:also, for Maurice if he'll ever read this:
then why changing just the "flowercolor"" RGB values doesnt affect fire mario colors(has effect just after the end of the startime), while changing just the "starcolors[3]" affect fire mario(and has no effect after the end of the startime)?
just changing the RGB values on both lines makes it working properly.
Because I forgot to set self.colors = flowercolor after the grow2 animation is finished and by pure chance (which is also the reason that I never noticed it) the last color of the animation is the one that is like the flowercolor and never gets replaced.

Post Reply