HOW TO USE: SMBX 2.0 Starman + New Characters

For topics related to SuperMarioBrosX.org. Suggest anything that you would like to see on the site here.
HeroLinik
Boom Boom
Boom Boom
Posts: 3459
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby HeroLinik » Tue May 31, 2016 7:33 am

OK, so I'm having a bit of an issue with my Starman. I've created a Lua file and put the necessary API in there, and copied it into the folder of the level I'm going to use it in, along with the Starman music and the actual NPC. The problem is, when I test the level, collecting the Starman results in it disappearing without activating, and when I open or finish testing the level, this error comes up:

Image

What am I doing wrong?

S1eth
Swooper
Swooper
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby S1eth » Tue May 31, 2016 8:28 am

Linik wrote:OK, so I'm having a bit of an issue with my Starman. I've created a Lua file and put the necessary API in there, and copied it into the folder of the level I'm going to use it in, along with the Starman music and the actual NPC. The problem is, when I test the level, collecting the Starman results in it disappearing without activating, and when I open or finish testing the level, this error comes up:

Image

What am I doing wrong?
Download this example level and see if it works in the legacy editor: https://www.mediafire.com/?dks5e4pll6jhckr

If it doesn't. Check if you have this file in your SMBX 2.0 folder:
SMBX 2.0\graphics\new_characters\rosalina\smwstar.ogg

HeroLinik
Boom Boom
Boom Boom
Posts: 3459
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby HeroLinik » Tue May 31, 2016 1:04 pm

S1eth wrote:
Linik wrote:OK, so I'm having a bit of an issue with my Starman. I've created a Lua file and put the necessary API in there, and copied it into the folder of the level I'm going to use it in, along with the Starman music and the actual NPC. The problem is, when I test the level, collecting the Starman results in it disappearing without activating, and when I open or finish testing the level, this error comes up:

Image

What am I doing wrong?
Download this example level and see if it works in the legacy editor: https://www.mediafire.com/?dks5e4pll6jhckr

If it doesn't. Check if you have this file in your SMBX 2.0 folder:
SMBX 2.0\graphics\new_characters\rosalina\smwstar.ogg
Apparently yours turns into a yellow Koopa Troopa and harms the player because you did the code wrong. I fixed it for you, but it's bringing up the same error as before. And yeah, I've got the file as questioned in my folder.

S1eth
Swooper
Swooper
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby S1eth » Tue May 31, 2016 1:36 pm

Linik wrote:
S1eth wrote:
Linik wrote:OK, so I'm having a bit of an issue with my Starman. I've created a Lua file and put the necessary API in there, and copied it into the folder of the level I'm going to use it in, along with the Starman music and the actual NPC. The problem is, when I test the level, collecting the Starman results in it disappearing without activating, and when I open or finish testing the level, this error comes up:

Image

What am I doing wrong?
Download this example level and see if it works in the legacy editor: https://www.mediafire.com/?dks5e4pll6jhckr

If it doesn't. Check if you have this file in your SMBX 2.0 folder:
SMBX 2.0\graphics\new_characters\rosalina\smwstar.ogg
Apparently yours turns into a yellow Koopa Troopa and harms the player because you did the code wrong. I fixed it for you, but it's bringing up the same error as before. And yeah, I've got the file as questioned in my folder.
How did you "fix" it? What did you change?

HeroLinik
Boom Boom
Boom Boom
Posts: 3459
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby HeroLinik » Tue May 31, 2016 1:51 pm

S1eth wrote:How did you "fix" it? What did you change?
You put API.load("starman") instead of loadAPI("starman"). The former code assumes you made a variable called API, which doesn't exist.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9718
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby Emral » Tue May 31, 2016 1:51 pm

Linik wrote:
S1eth wrote:How did you "fix" it? What did you change?
You put API.load(starman) instead of loadAPI(starman). The former code assumes you made a variable called API, which doesn't exist.
It exists since lunalua 7.3 which was released in january. Please update your lua.
http://wohlsoft.ru/LunaLua/

Make sure to only copy lunadll.dll and LuaScriptsLib. Copying the rest will mess with 2.0.

HeroLinik
Boom Boom
Boom Boom
Posts: 3459
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby HeroLinik » Tue May 31, 2016 1:56 pm

Enjl wrote:
Linik wrote:
S1eth wrote:How did you "fix" it? What did you change?
You put API.load(starman) instead of loadAPI(starman). The former code assumes you made a variable called API, which doesn't exist.
It exists since lunalua 7.3 which was released in january. Please update your lua.
http://wohlsoft.ru/LunaLua/

Make sure to only copy lunadll.dll and LuaScriptsLib. Copying the rest will mess with 2.0.
Yep, I've updated my Lua. Still not solving anything, though...

S1eth
Swooper
Swooper
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby S1eth » Tue May 31, 2016 2:01 pm

Linik wrote:
Enjl wrote:
Linik wrote: You put API.load(starman) instead of loadAPI(starman). The former code assumes you made a variable called API, which doesn't exist.
It exists since lunalua 7.3 which was released in january. Please update your lua.
http://wohlsoft.ru/LunaLua/

Make sure to only copy lunadll.dll and LuaScriptsLib. Copying the rest will mess with 2.0.
Yep, I've updated my Lua. Still not solving anything, though...
Play this: https://www.mediafire.com/?i7jyjj8v6ixsmil
I added a local version of starman.lua to it, and the sound file.

Please describe in detail what happens when you play this.

HeroLinik
Boom Boom
Boom Boom
Posts: 3459
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby HeroLinik » Tue May 31, 2016 2:29 pm

S1eth wrote:Play this: https://www.mediafire.com/?i7jyjj8v6ixsmil
I added a local version of starman.lua to it, and the sound file.

Please describe in detail what happens when you play this.
Haha, it works! Thanks pal!

S1eth
Swooper
Swooper
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby S1eth » Tue May 31, 2016 3:08 pm

Linik wrote:
S1eth wrote:Play this: https://www.mediafire.com/?i7jyjj8v6ixsmil
I added a local version of starman.lua to it, and the sound file.

Please describe in detail what happens when you play this.
Haha, it works! Thanks pal!
Please know that the level I uploaded is not the solution to your problem. Whenever you play another level that uses starman, it will break again.

I'll need you to upload some screenshots of your smbx directories to figure out the real cause and solution to your problem.
I require screenshots of:
1. your SMBX main directory
2. your SMBX 2.0\LuaScriptsLib folder (scroll down to the scripts that start with 's')
3. your SMBX 2.0\graphics\new_characters\rosalina folder
4. your level folder (of the level which causes the error message, NOT the one I uploaded)

Only then can your problem really be solved.

zaiodic
Goomba
Goomba
Posts: 2
Joined: Wed Jun 01, 2016 10:16 pm

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby zaiodic » Thu Jun 02, 2016 2:45 am

S1eth wrote:
Play this: https://www.mediafire.com/?i7jyjj8v6ixsmil
I added a local version of starman.lua to it, and the sound file.

Please describe in detail what happens when you play this.
I'm also having problems using starman. I used your version and my issue persisted.

My Starman basically just acts like a reskinned Paratroopa. It looks like a starman, but it hurts you and can be killed.

Kinda the opposite effect of what I was looking for XD

S1eth
Swooper
Swooper
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby S1eth » Thu Jun 02, 2016 4:44 am

zaiodic wrote:
S1eth wrote:
Play this: https://www.mediafire.com/?i7jyjj8v6ixsmil
I added a local version of starman.lua to it, and the sound file.

Please describe in detail what happens when you play this.
I'm also having problems using starman. I used your version and my issue persisted.

My Starman basically just acts like a reskinned Paratroopa. It looks like a starman, but it hurts you and can be killed.

Kinda the opposite effect of what I was looking for XD
This sounds like no code is being executed at all, which makes me think that you don't have lunalua installed (correctly).

Even if you think you have already done that, follow these steps:

1. Download SMBX 2.0 Beta here: https://mega.nz/#!A9R1BRIB!RMycZq8h594V ... rqNHxM1ccY
2. unzip it
3. Go to http://wohlsoft.ru/LunaLua/#links
4. Select "Latest" and "Only Update"
5. Unzip that into its own folder (NOT into SMBX 2.0)
6. Copy ONLY lunadll.dll and LuaScriptsLib from that new folder into your SMBX 2.0 directly
7. If asked to replace files, say yes.
8. Start SMBXLauncher.exe

If you have done all that, download this example level: http://www.mediafire.com/download/dks5e4pll6jhckr
And it should work without problems.
This level is different fromthe one you have downloaded from me earlier.

zaiodic
Goomba
Goomba
Posts: 2
Joined: Wed Jun 01, 2016 10:16 pm

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby zaiodic » Thu Jun 02, 2016 5:41 am

S1eth wrote:
This sounds like no code is being executed at all, which makes me think that you don't have lunalua installed (correctly).

Even if you think you have already done that, follow these steps:

1. Download SMBX 2.0 Beta here: https://mega.nz/#!A9R1BRIB!RMycZq8h594V ... rqNHxM1ccY
2. unzip it
3. Go to http://wohlsoft.ru/LunaLua/#links
4. Select "Latest" and "Only Update"
5. Unzip that into its own folder (NOT into SMBX 2.0)
6. Copy ONLY lunadll.dll and LuaScriptsLib from that new folder into your SMBX 2.0 directly
7. If asked to replace files, say yes.
8. Start SMBXLauncher.exe

If you have done all that, download this example level: http://www.mediafire.com/download/dks5e4pll6jhckr
And it should work without problems.
This level is different fromthe one you have downloaded from me earlier.
I followed every step, including re-downloading everything and I'm afraid the same thing is still happening :/

I want to also point out that all the extra characters work just fine! From what I've seen, the starman is the only thing I'm having issues with.

Edit: I just remembered there was a time where I ran megaman and starman in the same level folder once, and when I picked up a power pellet I got an error message about the starman and then the starman sparkle effects started appearing around megaman, but they didn't give him invulnerability.

Shadowblitz16
Bit
Bit
Posts: 62
Joined: Tue Aug 09, 2016 1:41 pm

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby Shadowblitz16 » Fri Aug 12, 2016 9:41 pm

I can confirm this it doesn't seem to work it just hurts the player like a normal koopatroopa

PixelPest
Raccoon Mario
Raccoon Mario
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby PixelPest » Fri Aug 12, 2016 9:44 pm

Shadowblitz16 wrote:I can confirm this it doesn't seem to work it just hurts the player like a normal koopatroopa
Then you're doing it wrong. You likely do not have the correct version or are doing something else wrong in the editor or to do with the file. It works fine if you implement it properly

Shadowblitz16
Bit
Bit
Posts: 62
Joined: Tue Aug 09, 2016 1:41 pm

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby Shadowblitz16 » Fri Aug 12, 2016 10:46 pm

you cannot say that
you do not know if its something wrong outside of the instructions provided

I followed the instructions exactly
- I downloaded SMBX from here
- I installed vcredist_x86
- I downloaded the latest version of lunalua form here
- I copyed the lunaDll.dll file and LuaModuleLib folder into the SMBX directory
- I made a folder called Test inside the SMBX world folder
- I made a folder called level0 and a file called level0.lvl inside that folder
- I created a lunadll.lua file and lunaworld.lua file and put in...

Code: Select all

local _smb3overhaul = API.load("smb3overhaul");
--local _smb3goalcard = API.load("smb3goalcard");--
--local _smb3inventory = API.load("smb3inventory");--
local _starman = API.load("starman")

function onLoad()

	--SMB3 OverHaul--
	_smb3overhaul.setSecondsLeft(100);
	_smb3overhaul.setTimerState(true);
	_smb3overhaul.usesPBar(true);
	_smb3overhaul.useEasyMode(true);
	_smb3overhaul.usesCard(true);
	_smb3overhaul.disableSpinJump(true);
	
	--SMB3 GoalCard--
	--_smb3goalcard.usesCard(true)--
	
	--SMB3 Inventory--
	
	--SMW Starman
	_starman.koopaId = 123
	
end
- note that I tested both these files separately and in both the episode folder, and level folder
- launched the SMBX Launcher(legacy editor)
- tested my level
- note some things work and some things don't
- for example
-- the SMB3_Overhaul draws and updates variables properly but either doesn't refresh drawn ui images of doesn't draw them at all
-- the Starman just kills mario like a normal koopatroopa

Edit: maybe someone should update the post on how to install SMBX 2.0 to include the actual full installation and what to use between either the vanilla/launcher or the hexed version

Stickman01
Koopa
Koopa
Posts: 16
Joined: Thu Aug 11, 2016 10:06 pm

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby Stickman01 » Sat Aug 27, 2016 4:41 pm

Does this work in the legacy editor? Because every time I try, it crashes, and then a pop up comes up saying that access to file was denied.

Mariofan121
Rex
Rex
Posts: 30
Joined: Wed Jul 20, 2016 9:39 pm
Contact:

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby Mariofan121 » Sun Sep 11, 2016 12:09 am

PLEASE HELP! I GOT AN ERROR

ERRORS
Using GDI Render, so some LunaDLL Files may not be presented in
some levels.

Could not open OpenGL Renderer Because:
Missing EXT_blend_minmax

zxcv
Volcano Lotus
Volcano Lotus
Posts: 511
Joined: Tue Aug 05, 2014 10:10 am
Pronouns: They/She

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby zxcv » Sun Sep 11, 2016 6:50 pm

Mariofan121 wrote:PLEASE HELP! I GOT AN ERROR

ERRORS
Using GDI Render, so some LunaDLL Files may not be presented in
some levels.

Could not open OpenGL Renderer Because:
Missing EXT_blend_minmax
Probaly you have a relatively old computer. I have a very similar problem.

wasdye3000
Goomba
Goomba
Posts: 1
Joined: Sat Mar 12, 2016 12:19 pm

Re: HOW TO USE: SMBX 2.0 Starman + New Characters

Postby wasdye3000 » Fri Sep 23, 2016 9:36 am

Is it possible to have both new and old characters whitout having to replace the old ones?
like, is it possible to have both mario and wario at the same time?


Return to “SuperMarioBrosX.org”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari