Fire Mario colors?[Solved]
- Mariobros2
- Posts: 293
- Joined: 03 May 2012, 20:10
- Contact:
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.
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.
-
- Posts: 1069
- Joined: 11 May 2012, 18:00
fire mario ? you mean fireballs ??? it's not in LUA it's a .png file you can modify via paint or photoshop .
- Mariobros2
- Posts: 293
- Joined: 03 May 2012, 20:10
- Contact:
I mean fire Mario colors.FaycalMenouar wrote:fire mario ? you mean fireballs ??? it's not in LUA it's a .png file you can modify via paint or photoshop .
Last edited by Mariobros2 on 27 Aug 2012, 20:22, edited 1 time in total.
-
- Posts: 1069
- Joined: 11 May 2012, 18:00
you mean mario after he gets that fire flower ? idk sorry dude .
- Mariobros2
- Posts: 293
- Joined: 03 May 2012, 20:10
- Contact:
Don't worry. I know you don't know lua. Besides if anyone knows this game better it's Maurice.FaycalMenouar wrote:you mean mario after he gets that fire flower ? idk sorry dude .
-
- Posts: 1069
- Joined: 11 May 2012, 18:00
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 :)
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.
-
- Posts: 1069
- Joined: 11 May 2012, 18:00
yeah i told you guys i know nothing about LUA ^^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.
found
main.lua, line 1115
and line 1118
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:
sinceand
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.
main.lua, line 1115
Code: Select all
starcolors[3] = {{252, 216, 168}, {216, 40, 0}, {252, 152, 56}}
Code: Select all
flowercolor = {{252, 216, 168}, {216, 40, 0}, {252, 152, 56}}
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
Code: Select all
if self.size == 3 then
self.colors = flowercolor
just changing the RGB values on both lines makes it working properly.
- BobTheLawyer
- Posts: 2232
- Joined: 01 May 2012, 21:00
He was more wrong.FaycalMenouar wrote:yeah i told you guys i know nothing about LUA ^^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.
- LightningFire
- Posts: 1828
- Joined: 10 Mar 2012, 17:24
- Contact:
@TheSeek Do you know how can I change fire mario's color to the player's custom color?
- Mariobros2
- Posts: 293
- Joined: 03 May 2012, 20:10
- Contact:
@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.
*Edit* Works 100% Even though I don't know anything about lua, I can still do small mods like this.
Even though I do know anything about Love or Lua, by skimming through Mari0's lua files, I actually learned a bit...LightningFire wrote:Do you know how can I change fire mario's color to the player's custom color?
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
Various lines, just search for "flowercolor" and change all of those to "flowercolors[self.playernumber]"
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.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.