(shouting)

MaGL X2 Discussion - MaGL X2 Lands TOMORROW. GET. HYPE.

Locked
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Willhart »

7TC7 wrote:So, probably useful question for anyone planning to use both of their characters. Is it possible to switch characters without the need of that characters switch-block, best case scenario by switching to another screen?
If there is an easy way that I'm just not seeing, that would be great. If not, I'll probably find a workaround.
You can use this lunadll code. The #-1 means it happens on level load, but you can also change it to the section number you want it to work on. This one will automatically change all other characters (2-5) to Mario (1).

Code: Select all

#-1
FilterPlayer,0,2,1,0,0,0
FilterPlayer,0,3,1,0,0,0
FilterPlayer,0,4,1,0,0,0
FilterPlayer,0,5,1,0,0,0
And this one will change all characters to Luigi on section 3.

Code: Select all

#3
FilterPlayer,0,1,2,0,0,0
FilterPlayer,0,3,2,0,0,0
FilterPlayer,0,4,2,0,0,0
FilterPlayer,0,5,2,0,0,0
User avatar
Sorel
In the shadows
Posts: 702
Joined: 10 years ago
First name: Alexander
Pronouns: he/him/his
Location: some place

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Sorel »

What about switching your character on command by pressing down? I heard that it is possible and I kinda have some good ideas in mind.
Former active member, yearly lurker now.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4200
Joined: 11 years ago
Location: Nova Scotia

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by SAJewers »

FluffiMasta wrote:What about switching your character on command by pressing down? I heard that it is possible and I kinda have some good ideas in mind.
Taken from A2XT Ep1:

Code: Select all

#0
OnInput,0,2,1,1007,0,0
FilterPlayer,0,5,1,0,0,0
FilterPlayer,0,3,1,0,0,0
FilterPlayer,0,4,1,0,0,0

#1007
OnInput,0,2,1,1008,15,0

#1008
CyclePlayerRight,0,0,0,0,1,0
Double-tap Down to swap between Mario and Luigi.
Last edited by SAJewers 9 years ago, edited 1 time in total.
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
User avatar
Sorel
In the shadows
Posts: 702
Joined: 10 years ago
First name: Alexander
Pronouns: he/him/his
Location: some place

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Sorel »

SAJewers wrote:
FluffiMasta wrote:What about switching your character on command by pressing down? I heard that it is possible and I kinda have some good ideas in mind.
Taken from A2XT Ep1:

Code: Select all

#0
OnInput,0,2,1,1007,0,0

#1007
OnInput,0,2,1,1008,15,0

#1008
CyclePlayerRight,0,0,0,0,1,0
Double-tap Down to swap Mario > Luigi > Peach > Toad > Lunk > Mario. Replace CyclePlayerRight with a FilterPlayer Command if you want.
Ok, I got it. Thanks.
Former active member, yearly lurker now.
User avatar
Rednaxela
Maker of Shenanigans
Posts: 897
Joined: 10 years ago
Pronouns: they/them
https://rednaxela.talkhaus.com

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Rednaxela »

FluffiMasta wrote:What about switching your character on command by pressing down? I heard that it is possible and I kinda have some good ideas in mind.
Alternatively with LunaLua (untested, but should work)

Code: Select all

function onKeyDown(keycode, playerIndex)
	if (keycode == KEY_DOWN) then
		player:mem(0xF0, FIELD_WORD, player:mem(0xF0, FIELD_WORD) % 5 + 1)
	end
end
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Willhart »

FluffiMasta wrote:What about switching your character on command by pressing down? I heard that it is possible and I kinda have some good ideas in mind.
You can also ad a thing to it, so that some of the reserve items don't disappear when switching back to Mario.

Code: Select all

#0
//Step 1 of Double-tap down code
OnInput,0,2,1,1000,0,0

//Event 1000 Step 2 of double-tap down code
#1000
OnInput,0,2,1,1001,15,0

#1001
// Cycles player right Mario -> Luigi -> Princess -> Toad -> Link -> Mario.
CyclePlayerRight,0,0,0,0,1,0

//Filter Peach back to mario to make Mario Luigi swap. Change this to prevent unwanted characters from the cycle.
FilterPlayer,0,3,1,0,0,0

//For protecting reserve powerups from disappearing when switching back to Mario.
OnPlayerMem,0x158,9,0,1002,1,w
OnPlayerMem,0x158,14,0,1003,1,w
OnPlayerMem,0x158,34,0,1004,1,w
OnPlayerMem,0x158,264,0,1005,1,w

//Event 1002-1005
//Set reserve to Mushroom, Fire, Leaf and Ice.
#1002
PlayerMemSet,0,0x158,9,0,1,w

#1003
PlayerMemSet,0,0x158,14,0,1,w

#1004
PlayerMemSet,0,0x158,34,0,1,w

#1005
PlayerMemSet,0,0x158,264,0,1,w

#END
Edit: fixed a thing.
User avatar
Sorel
In the shadows
Posts: 702
Joined: 10 years ago
First name: Alexander
Pronouns: he/him/his
Location: some place

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Sorel »

So when I want to filter every character except

Toad and Link

, I have to use FilterPlayer, is that correct?

I'm not quite sure what I need to fill in those 0 for it to work properly.
Former active member, yearly lurker now.
User avatar
Voltgloss
Ask, and you shall be given. Think, and you shall find.
Posts: 1147
Joined: 10 years ago
Pronouns: he/him/his
Location: exploring the world, now with friends

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Voltgloss »

FluffiMasta wrote:So when I want to filter every character except

Toad and Link

, I have to use FilterPlayer, is that correct?

I'm not quite sure what I need to fill in those 0 for it to work properly.
You'll want to set it up so that

Mario gets filtered back to Toad, because cycling from Link normally switches to Mario.

Like so:

Code: Select all

#1001
// Cycles player right Mario -> Luigi -> Princess -> Toad -> Link -> Mario.
CyclePlayerRight,0,0,0,0,1,0

//Filter Mario back to Toad to make Toad Link swap. Change this to prevent unwanted characters from the cycle.
FilterPlayer,0,1,4,0,0,0
The second number after FilterPlayer is the number of the character you're filtering from. The third number is the character you're filtering to. Mario is 1, Luigi is 2, Princess is 3, Toad is 4, Link is 5.
Image
Image
Image
User avatar
Hoeloe
A2XT person
Posts: 1016
Joined: 12 years ago
Pronouns: she/her
Location: Spaaace

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Hoeloe »

Looks like CinematX is in working order now, so should be added to the devkit soon. Also, MainV2.lua is out of date, and prevents onLoad scripts from working. There's a fix in the lua thread.
Image
Image
Image
Image
Image
User avatar
Sorel
In the shadows
Posts: 702
Joined: 10 years ago
First name: Alexander
Pronouns: he/him/his
Location: some place

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Sorel »

Hoeloe wrote:Looks like CinematX is in working order now, so should be added to the devkit soon. Also, MainV2.lua is out of date, and prevents onLoad scripts from working. There's a fix in the lua thread.
Hm, I kinda noticed the activity in the cinematX thread, but, after checking the thread, I have no idea what this cinematX can do.
Former active member, yearly lurker now.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4200
Joined: 11 years ago
Location: Nova Scotia

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by SAJewers »

This is from Kil's LunaDLL Tutorial. this may help you.

Code: Select all

///--Basic filter script--///

#-1
FilterToBig,0,0,0,0,0,0
#END

That's the whole thing. First we have the level load designator, which is where you
normally want a filter. FilterToBig lowers Demo's powerup down to mushroom level
if she has anything higher than a mushroom, and does nothing if she's small.

FilterToBig's 6 parameters do nothing except the 5th, the active time. It's set to
0 which means "always", but since it's in the level load section, it only works
for that 1 frame when the level is loading. If this were in section #0, Demo would
never be able to get a powerup higher than a mushroom because she would constantly
be filtered to bigness.


///--Basic filter script 2--///

#-1
FilterMount,0,0,0,0,0,0
#END

Same thing as filter 1, except it deletes your mount/yoshi/shoe if you have one.


///--Basic filter script 3--///

// Section 2
#2
FilterReservePowerup,0,0,0,0,180,0
#END

Let's change things up. The designator is now section 2, and the active time is 180.
That means when you enter section 2, the player will constantly have his reserve
powerup removed over the span of 3 seconds. Why you would actually do this is
another story.


///--Bad Example--///
#-1
InfiniteFlying,0,0,0,0,0,0
#END

This is a bad example because the command exists in the level load section. This
command in particular doesn't work unless it's continuously active, and in the level
load section it won't actually do anything. It should be under #0


///--Multi character filter--///
#-1

// Filter raocow to Demo
FilterPlayer,0,4,1,0,0,0

// Filter Princess to Demo
FilterPlayer,0,3,1,0,0,0

#END

This example removes the possibility of raocow or Princess being in your level.
FilterPlayer only has 3 relevent parameters. #2 is the character you want to filter
out, and #3 is the character you want it to filter to. 1 is Demo, 2 is Iris, etc.
#5 is the active time as usual, but since it's the load level section, any amount is
fine.
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
User avatar
Hoeloe
A2XT person
Posts: 1016
Joined: 12 years ago
Pronouns: she/her
Location: Spaaace

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Hoeloe »

FluffiMasta wrote: Hm, I kinda noticed the activity in the cinematX thread, but, after checking the thread, I have no idea what this cinematX can do.
It's a cutscene engine. It allows much easier cutscene management, quests, AI followers, etc. All sorts of really snazzy stuff.
Image
Image
Image
Image
Image
Rixithechao
https://www.youtube.com/watch?v=BODxOghVmko
Posts: 1812
Joined: 10 years ago
First name: Mack
https://rixithechao.talkhaus.com/

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Rixithechao »

Some old dev videos of said thingamadoodle:





Delightful Adventure Enhanced is out now!

Image

There's an official ASMT Discord server! Check it out to discuss Demo games and follow their development! thread, invite link

(Entry requires verification, either with a connected Youtube/Twitter/Twitch/etc account or manually by the server staff.)


Itch.io (albums and eventually games), Youtube (dofur pass and I guess other videos)
User avatar
7TC7
Squanshy Cat
Posts: 57
Joined: 14 years ago
Pronouns: he
Location: Austria

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by 7TC7 »

Willhart wrote:
7TC7 wrote:So, probably useful question for anyone planning to use both of their characters. Is it possible to switch characters without the need of that characters switch-block, best case scenario by switching to another screen?
If there is an easy way that I'm just not seeing, that would be great. If not, I'll probably find a workaround.
You can use this lunadll code. The #-1 means it happens on level load, but you can also change it to the section number you want it to work on. This one will automatically change all other characters (2-5) to Mario (1).

Code: Select all

#-1
FilterPlayer,0,2,1,0,0,0
FilterPlayer,0,3,1,0,0,0
FilterPlayer,0,4,1,0,0,0
FilterPlayer,0,5,1,0,0,0
And this one will change all characters to Luigi on section 3.

Code: Select all

#3
FilterPlayer,0,1,2,0,0,0
FilterPlayer,0,3,2,0,0,0
FilterPlayer,0,4,2,0,0,0
FilterPlayer,0,5,2,0,0,0
Do I have to do anything else but putting those in a textfile called lunadll.txt inside my levels folder? It doesn't seem to work when testing the level in SMBX and a quick search didn't tell me anymore things I need to do.
Meet me at YouTube and watch Touhou stuff!
Image
User avatar
Rednaxela
Maker of Shenanigans
Posts: 897
Joined: 10 years ago
Pronouns: they/them
https://rednaxela.talkhaus.com

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Rednaxela »

7TC7 wrote:Do I have to do anything else but putting those in a textfile called lunadll.txt inside my levels folder? It doesn't seem to work when testing the level in SMBX and a quick search didn't tell me anymore things I need to do.
Did you put it in the same folder as your .lvl file, or did you put it in your level's custom resources folder (named "foo" if you level file was "foo.lvl")?
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Willhart »

7TC7 wrote:Do I have to do anything else but putting those in a textfile called lunadll.txt inside my levels folder? It doesn't seem to work when testing the level in SMBX and a quick search didn't tell me anymore things I need to do.
Did you download the MaGL x2 Devkit? This example level should work.
Attachments
Test.rar
(632 Bytes) Downloaded 86 times
User avatar
Voltgloss
Ask, and you shall be given. Think, and you shall find.
Posts: 1147
Joined: 10 years ago
Pronouns: he/him/his
Location: exploring the world, now with friends

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Voltgloss »

Rednaxela wrote:
7TC7 wrote:Do I have to do anything else but putting those in a textfile called lunadll.txt inside my levels folder? It doesn't seem to work when testing the level in SMBX and a quick search didn't tell me anymore things I need to do.
Did you put it in the same folder as your .lvl file, or did you put it in your level's custom resources folder (named "foo" if you level file was "foo.lvl")?
To clarify, the lunadll.txt file should go in your level's custom resources folder (the same place you would put custom graphics and music).
Image
Image
Image
User avatar
7TC7
Squanshy Cat
Posts: 57
Joined: 14 years ago
Pronouns: he
Location: Austria

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by 7TC7 »

Willhart wrote:
7TC7 wrote:Do I have to do anything else but putting those in a textfile called lunadll.txt inside my levels folder? It doesn't seem to work when testing the level in SMBX and a quick search didn't tell me anymore things I need to do.
Did you download the MaGL x2 Devkit? This example level should work.
Ah, thanks to that test-level I figured out my problem. I did download the devkit... but instead of using the a2mbxt.exe in there, I used the SMBX.exe in a different folder. This couldn't really work. Thanks everyone~
Meet me at YouTube and watch Touhou stuff!
Image
User avatar
Fawriel
Posts: 132
Joined: 14 years ago
Location: Germanland

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Fawriel »

... This might be a stupid question, but what does the MaGL x2 Devkit actually do?

Sorry if this should be obvious - I have a bit of a complicated computer situation right now, so I haven't gotten the chance to actually use any of the programs yet.
User avatar
Sorel
In the shadows
Posts: 702
Joined: 10 years ago
First name: Alexander
Pronouns: he/him/his
Location: some place

MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Sorel »

Hoeloe wrote:It's a cutscene engine. It allows much easier cutscene management, quests, AI followers, etc. All sorts of really snazzy stuff.
Rockythechao wrote:Some old dev videos of said thingamadoodle]
Now this sounds (and looks) pretty neat. Maybe I'll look into that once it's ready. (and if I got some time to learn how to use it.)
User avatar
Hoeloe
A2XT person
Posts: 1016
Joined: 12 years ago
Pronouns: she/her
Location: Spaaace

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Hoeloe »

FluffiMasta wrote:
Hoeloe wrote:It's a cutscene engine. It allows much easier cutscene management, quests, AI followers, etc. All sorts of really snazzy stuff.
Rockythechao wrote:Some old dev videos of said thingamadoodle]
Now this sounds (and looks) pretty neat. Maybe I'll look into that once it's ready. (and if I got some time to learn how to use it.)
It should be added to the MAGLX2 devkit soon. Rocky and I have been patching it up so it's usable for the contest.
Image
Image
Image
Image
Image
LiAS

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by LiAS »

For reasons unknown to anyone, can someone make me

Bowser graphics as a piece of Bacon with a crown? And the grinder (sawblade) as an egg?

User avatar
swirlybomb
a bomb that is swirly
Posts: 65
Joined: 12 years ago
First name: Swirlus Bomberton
Location: The Canadas

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by swirlybomb »

Rockythechao wrote:Some old dev videos of said thingamadoodle [cinematX]:





holy crap

words cannot express how absolutely stunned i am at this
anonymousbl00dlust wrote:All the obstacles in my level can be beaten on the players first attempt without any 'future predicting'.
Image
User avatar
Penguinator44
Long time listener, first time caller
Posts: 85
Joined: 9 years ago
Location: Australia

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Penguinator44 »

I've a very minor issue

In my level I've replaced a Swooper with a slightly larger enemy (36 pxl). Is there anyway to get it to place neatly on the roof like a regular Swooper would when I have auto-align on or is it just a case of having to manually place it all the time.

I've tried putting the gfxoffsety to 4 which makes it look like it'd be fine to place with auto-align on but that didn't work

Either way I've probably already wasted 5 minutes for trying to get the convenience of saving me a couple of seconds later on
User avatar
Rumis
Rumielle
Posts: 16
Joined: 9 years ago

Re: MaGL X2 Discussion. No raocows! NOT the sign up thread!

Post by Rumis »

Can anyone help me out regarding backgrounds? I have a vertical section that's longer than one of the backgrounds I was using. Does anyone have any tips for backgrounds and vertical segments?
Locked