Page 3 of 8
Re: General Help and Quick Questions
Posted: Wed Aug 11, 2021 4:54 am
by Wiimeiser
I have no idea what's going on with the Celeste Screen Transitions (rooms.lua), but it's doing something weird with this particular line of code:
It makes data.timer register as a nil.
It also breaks this:
Code: Select all
color = Color.yellow..v.data.redfx
Causing an error saying "concat must be color or number"
So based on this, it seems to be
overwriting key variables in an unsafe way and turning them into null variable types.
Also, I must be the only person who reads this thread anymore...
Re: General Help and Quick Questions
Posted: Thu Aug 19, 2021 8:57 pm
by MrDoubleA
Wiimeiser wrote: ↑Wed Aug 11, 2021 4:54 am
I have no idea what's going on with the Celeste Screen Transitions (rooms.lua), but it's doing something weird with this particular line of code:
It makes data.timer register as a nil.
It also breaks this:
Code: Select all
color = Color.yellow..v.data.redfx
Causing an error saying "concat must be color or number"
So based on this, it seems to be
overwriting key variables in an unsafe way and turning them into null variable types.
Also, I must be the only person who reads this thread anymore...
Sounds like your code doesn't handle the case where its onDrawNPC function runs before it's onTickNPC. This is not a rooms.lua issue.
Re: General Help and Quick Questions
Posted: Sat Sep 04, 2021 12:43 pm
by InternetPeasent
Does anybody know how to disable character swapping in the world map menu?
Re: General Help and Quick Questions
Posted: Wed Nov 03, 2021 8:11 pm
by 1Mariobro
I'm making a cutscene that has the player auto move but I want it to stop at a certain place how do I do that?
Re: General Help and Quick Questions
Posted: Fri Nov 05, 2021 1:42 pm
by KnownStranger
1Mariobro wrote: ↑Wed Nov 03, 2021 8:11 pm
I'm making a cutscene that has the player auto move but I want it to stop at a certain place how do I do that?
If you're using events for the auto-move so you need to make an event where the up control is enabled and the character will stop walking.
Re: General Help and Quick Questions
Posted: Fri Nov 05, 2021 8:49 pm
by 1Mariobro
Weirdgoomba4932 wrote: ↑Fri Nov 05, 2021 1:42 pm
1Mariobro wrote: ↑Wed Nov 03, 2021 8:11 pm
I'm making a cutscene that has the player auto move but I want it to stop at a certain place how do I do that?
If you're using events for the auto-move so you need to make an event where the up control is enabled and the character will stop walking.
Thank you!
Re: General Help and Quick Questions
Posted: Sat Nov 27, 2021 12:49 pm
by Beancity_II
For some reason when I load up SMBX2, the window seems to be vertically and horizontally flipped and it thinks the mouse is in the opposite place compared to where it actually is.

Re: General Help and Quick Questions
Posted: Mon Nov 29, 2021 9:57 am
by KnownStranger
How I can change the health of a npc and make them resist more hits?
Re: General Help and Quick Questions
Posted: Fri Jan 14, 2022 3:41 am
by Wohlstand
BeancityDaPerson wrote: ↑Sat Nov 27, 2021 12:49 pm
For some reason when I load up SMBX2, the window seems to be vertically and horizontally flipped and it thinks the mouse is in the opposite place compared to where it actually is.
Is that under VirtualBox VM, or do you run the thing on hardware?
This mess also affects the game too, blame glOrtho() call usage. Usually, it's totally not suggested to use it at all, instead, compute the screen-scene mapping manually.
Re: General Help and Quick Questions
Posted: Fri Jan 21, 2022 3:08 am
by SEDYON
I am a beginner on SMBX2, and I would like to have some questions that I can't find the answer.
-How do you put a waterfall in the world map? I can't find it.
-What is the difference between "Custom" and "Reserved"?
-How do I use NPC packs or texture packs (after downloading)?
Thanks in advance for your answers.

Re: General Help and Quick Questions
Posted: Fri Jan 21, 2022 11:14 am
by deice
Shrek128 wrote: ↑Fri Jan 21, 2022 3:08 am
I am a beginner on SMBX2, and I would like to have some questions that I can't find the answer.
-How do you put a waterfall in the world map? I can't find it.
-What is the difference between "Custom" and "Reserved"?
-How do I use NPC packs or texture packs (after downloading)?
Thanks in advance for your answers.
1. you have to create or find a custom graphic for it. if you don't wish to replace one of the few already existing animated tiles, you have to also use some lua as map customization isn't very robust, i suggest either
smwmap or
chocomap.
2. unlike the custom range, the reserved range shouldn't be touched as it will likely be used for basegame content by a future smbx2 version.
3. graphics are placed either in a folder of the same name as a given level (minus the extension) that is then itself placed in the same directory as said level, or directly into the episode folder if you wish for the graphic replacement to apply to every level in the episode. as for custom npcs and other lua code, see
here.
Re: General Help and Quick Questions
Posted: Fri Jan 21, 2022 11:17 am
by Marioman2007
Shrek128 wrote: ↑Fri Jan 21, 2022 3:08 am
I am a beginner on SMBX2, and I would like to have some questions that I can't find the answer. :oops:
-How do you put a waterfall in the world map? I can't find it.
-What is the difference between "Custom" and "Reserved"?
-How do I use NPC packs or texture packs (after downloading)?
Thanks in advance for your answers. :D
1) You can get some waterfall GFX in the assets archive
2) Custom range is from 751-1000, people can create custom NPCs/blocks/BGOs under this range. While reserved stuff will be used by the developers in the future
3)
viewtopic.php?f=101&t=23744
EDIT: lol I am 3 minutes late from deice, oops
Re: General Help and Quick Questions
Posted: Mon Jan 24, 2022 2:22 pm
by SEDYON
First of all, I would like to thank the people who answered me.
I have a question: how do you create a level that can be played only once?
Re: General Help and Quick Questions
Posted: Mon Jan 24, 2022 2:50 pm
by deice
Shrek128 wrote: ↑Mon Jan 24, 2022 2:22 pm
I have a question: how do you create a level that can be played only once?
if you mean a level that makes itself completely unplayable after being cleared, this isn't possible within vanilla smbx. maybe using lua you could wait until the level's been exited and then overwrite the level file with junk, but lunalua has limitations to it's file system to prevent malicious code from being run so i'm not sure if that's possible either.
if you mean a level that isn't (practically) accessible after being played once, it depends:
- in a hub-style episode, you could for example require something like a switch palace switch to be pressed to beat the level, then block it off in the hub using that same switch. there's plenty of ways to go about it even in vanilla.
- on the world map, there's no real way to block levels off from the get-go without using lua. any way of blocking entry in a level would have to be within the level itself (example, a wall and an offscreen exit) but this is a bit crude.
Re: General Help and Quick Questions
Posted: Mon Jan 24, 2022 3:26 pm
by SEDYON
deice wrote: ↑Mon Jan 24, 2022 2:50 pm
Shrek128 wrote: ↑Mon Jan 24, 2022 2:22 pm
I have a question: how do you create a level that can be played only once?
if you mean a level that makes itself completely unplayable after being cleared, this isn't possible within vanilla smbx. maybe using lua you could wait until the level's been exited and then overwrite the level file with junk, but lunalua has limitations to it's file system to prevent malicious code from being run so i'm not sure if that's possible either.
if you mean a level that isn't (practically) accessible after being played once, it depends:
- in a hub-style episode, you could for example require something like a switch palace switch to be pressed to beat the level, then block it off in the hub using that same switch. there's plenty of ways to go about it even in vanilla.
- on the world map, there's no real way to block levels off from the get-go without using lua. any way of blocking entry in a level would have to be within the level itself (example, a wall and an offscreen exit) but this is a bit crude.
OK, thanks you! I don't know how to use lua, it will be more limited... I will find something else...

Re: General Help and Quick Questions
Posted: Sat Mar 12, 2022 1:58 pm
by SEDYON
Hello, I have (again!) some questions.
1/ How do you replace one noise by another? (for example, replace Link's shield sound by a lightning sound?)
2/ Does anyone know where to find a texture pack for world maps in SMB3 style (I'm looking for one that allows to put some relief, because flat world maps are not very good)?
3/ How to put a custom music on a world map?
Thanks in advance for your feedback.
Re: General Help and Quick Questions
Posted: Sat Mar 12, 2022 3:31 pm
by deice
Shrek128 wrote: ↑Sat Mar 12, 2022 1:58 pm
Hello, I have (again!) some questions.
1/ How do you replace one noise by another? (for example, replace Link's shield sound by a lightning sound?)
2/ Does anyone know where to find a texture pack for world maps in SMB3 style (I'm looking for one that allows to put some relief, because flat world maps are not very good)?
3/ How to put a custom music on a world map?
Thanks in advance for your feedback.
1, 3. look at "sounds.ini" and "music.ini" inside "data/_templates". the ini files work in the same way as graphics, so place them into a level folder for a sound replacement inside that one level, or your episode folder for it to apply to the entire episode.
2. maybe you can find something
here. if not i suggest either looking through the graphics forum or asking inside the graphic request subforum
Re: General Help and Quick Questions
Posted: Sun Mar 13, 2022 7:45 am
by SEDYON
Hi, so I copied and pasted sound.ini into my level folder and modified "zelda-shield". However, when I go into the editor and test, it's still the original sound. Any explanation?

Re: General Help and Quick Questions
Posted: Sun Mar 13, 2022 6:00 pm
by deice
Boo128 wrote: ↑Sun Mar 13, 2022 10:10 am
Hi, so I copied and pasted sound.ini into my level folder and modified "zelda-shield". However, when I go into the editor and test, it's still the original sound. Any explanation?
the paths are relative to where the ini file is. so, if your ini file is inside "Val orageux", the path would be just "eclair.ogg" instead of "Val orageux/eclair.ogg".
Re: General Help and Quick Questions
Posted: Sun Apr 10, 2022 5:39 am
by Beancity_II
Wohlstand wrote: ↑Fri Jan 14, 2022 3:41 am
BeancityDaPerson wrote: ↑Sat Nov 27, 2021 12:49 pm
For some reason when I load up SMBX2, the window seems to be vertically and horizontally flipped and it thinks the mouse is in the opposite place compared to where it actually is.
Is that under VirtualBox VM, or do you run the thing on hardware?
This mess also affects the game too, blame glOrtho() call usage. Usually, it's totally not suggested to use it at all, instead, compute the screen-scene mapping manually.
Yeah, probably because I run it on a VM. Are there any fixes?