SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Modern Sonic Abilities 4.0 BIG UPDATE Details »»
Modern Sonic Abilities 4.0 BIG UPDATE
Version: 4.0, by MotdSpork (Mafia? Zombies? Gold spork?) MotdSpork is offline
Developer Last Online: May 2018

Category: Version: SRB2 Rating: (6 votes - 3.83 average)
Released: 04-19-2014 Last Update: 01-24-2015 Installs: 6
Scripts Re-Useable Content

Hello, This is my first post regarding a release. This is a wad containing lua scripting that gives SRB2 Sonic all of Modern Sonic's abilities.

Abilities:Boost(Custom 1)
Run on water (as long as boosting)
Lightdash(Custom 1)
Stomp(Spin)
DoubleJump/HomingAttack (ala Sonic Colors)
WallJump (doublejump at a wall)
Slide (replaces Spindash)
QuickStep (hold custom 3 + strafe)


There are two files inside. One with a character and the other with just the Lua.


Update 4.0

Added Quick Step
Added Boost Bar
New Boost sfx


Enjoy

Download Now

File Type: zip modernabilities.zip (762.8 KB, 9648 views)

Screenshots

Click image for larger version

Name:	srb20001.gif
Views:	4467
Size:	3.60 MB
ID:	4402   Click image for larger version

Name:	srb20003.gif
Views:	2086
Size:	5.45 MB
ID:	4403   Click image for larger version

Name:	srb20004.gif
Views:	4871
Size:	3.78 MB
ID:	4404   Click image for larger version

Name:	srb20005.gif
Views:	1824
Size:	2.11 MB
ID:	4405   Click image for larger version

Name:	srb20014.gif
Views:	2342
Size:	5.95 MB
ID:	4537  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 04-20-2014   #2
Sryder13
'That brit'
Judge
 
Sryder13's Avatar
Default

There is a warning that appear in the console when either of these are added.
Quote:
WARNING: Line 0: Patch is for SRB2 version 211,
only version 210 is supported
1 warning in the SOC lump
For this, just set the first line in the OBJCTCFG to have 210 instead.

Another thing is that there is a slight bug regarding boost. Boost sets your ability to swim so that it can give you run on water, which is intended. However, the script does this when you don't have any rings and are pressing the button to boost as well. Meaning you cannot thok while holding the boost button with no rings. Furthermore, if you attempt this underwater you just get rocketed downwards instead.

They're relatively minor issues and should be simple to fix. Considering the lua seems to be custom (with the exception of the lightdash I believe, although that is marked as re-usable), I can't see any other reason for this to not be released, unless another judge can correct me, just fix up those minor issues.
__________________
Quote:
<MonsterIestyn> try ctrl+f masturbation and get to the point

Last edited by Sryder13; 04-20-2014 at 04:07 PM.
Sryder13 is offline   Reply With Quote
Old 04-20-2014   #3
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

OK i will fix as soon as i can. As for the boost, I'm not sure why this is happening? but thank you for your feedback.
Quote:
Originally Posted by Sryder13 View Post
They're relatively minor issues and should be simple to fix. Considering the lua seems to be custom (with the exception of the lightdash I believe, although that is marked as re-usable), I can't see any other reason for this to not be released, unless another judge can correct me, just fix up those minor issues.
As for this i did use Badnik's lightdash as a base although i did not copy. it was just a reference.
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you

Last edited by MotdSpork; 04-20-2014 at 07:34 PM.
MotdSpork is offline   Reply With Quote
Old 04-21-2014   #4
Sryder13
'That brit'
Judge
 
Sryder13's Avatar
Default

Ok, this all seems to be in working order now. Moving to releases as a lua example in Miscellaneous for others to use.
__________________
Quote:
<MonsterIestyn> try ctrl+f masturbation and get to the point
Sryder13 is offline   Reply With Quote
Old 04-21-2014   #5
TOGM95
What am I again?
 
TOGM95's Avatar
Default

That's a good script, although i founded a bug and i believe you can fix it.
Here's the bug: if you try to boost while standing still, the animation is the standing one.
Once again i hope you can fix it...
If i can, i'l try to put a screenshot or movie to see the problem.

---------- Post added at 03:14 PM ---------- Previous post was at 02:58 PM ----------

Here's the problem:

__________________
FNaF happened! (like 5 months!)

And remember:

IT'S ME. (or IT'S HIM whatev.)
TOGM95 is offline   Reply With Quote
Old 04-21-2014   #6
Chimera
Your best friend
 
Chimera's Avatar
Default

ah yes I remember having that. A quick fix would be to force Sonic to go into the running state. Really silly problem honestly.
__________________
I question you.
Chimera is offline   Reply With Quote
Old 04-21-2014   #7
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

Quote:
Originally Posted by Chimera View Post
ah yes I remember having that. A quick fix would be to force Sonic to go into the running state. Really silly problem honestly.

The way the script is set up, when i set it to force the player into a running state, it stays in that state. what this means is that if you are boosting, then you will be stuck in 1 running frame.
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you
MotdSpork is offline   Reply With Quote
Old 04-21-2014   #8
fickleheart
gender collector
 
fickleheart's Avatar
Default

player.panim = PA_RUN

You're welcome
__________________
Quote:
<@toaster> '"sonic robot explosion 2", the hot new sensation for teens looking for a good time, tempts many children away from god each year'
av src
fickleheart is offline   Reply With Quote
Old 04-21-2014   #9
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

Quote:
Originally Posted by RedEnchilada View Post
player.panim = PA_RUN

You're welcome
I already did this but instead of him in his running animations, hes in his walking animations.
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you
MotdSpork is offline   Reply With Quote
Old 04-22-2014   #10
Streakster "Kiba"
Ech.
 
Streakster "Kiba"'s Avatar
Default

This is nice, but can I suggest moving the lightdash to one of the custom buttons? It'd make more sense. How about moving the stomp to maybe custom action 2, and lightdash to 3? I say this because the stomp collides and renders Super Sonic's flight unusable. Also, your stomp and double jump aren't compatible with Super Sonic's pallete.
__________________
I don't have anything witty to put here.
Imagine I did.

Last edited by Streakster "Kiba"; 04-22-2014 at 02:05 AM.
Streakster "Kiba" is offline   Reply With Quote
Old 04-22-2014   #11
The Zero Team
Default

Quote:
Originally Posted by MotdSpork View Post
what this means is that if you are boosting, then you will be stuck in 1 running frame.
Code:
if player.mo.state==S_PLAY_STND
or player.mo.state==S_PLAY_TAP1
or player.mo.state==S_PLAY_TAP2
or player.mo.state==S_PLAY_RUN1
or player.mo.state==S_PLAY_RUN2
or player.mo.state==S_PLAY_RUN3
or player.mo.state==S_PLAY_RUN4
or player.mo.state==S_PLAY_RUN5
or player.mo.state==S_PLAY_RUN6
or player.mo.state==S_PLAY_RUN7
or player.mo.state==S_PLAY_RUN8
    player.mo.state=SPD1
end
You're whale cu welcome. Just a silly little coding I made up in my head right here, right now.
The Zero Team is offline   Reply With Quote
Old 04-22-2014   #12
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

Quote:
Originally Posted by The Zero Team View Post
Code:
if player.mo.state==S_PLAY_STND
or player.mo.state==S_PLAY_TAP1
or player.mo.state==S_PLAY_TAP2
or player.mo.state==S_PLAY_RUN1
or player.mo.state==S_PLAY_RUN2
or player.mo.state==S_PLAY_RUN3
or player.mo.state==S_PLAY_RUN4
or player.mo.state==S_PLAY_RUN5
or player.mo.state==S_PLAY_RUN6
or player.mo.state==S_PLAY_RUN7
or player.mo.state==S_PLAY_RUN8
    player.mo.state=SPD1
end
You're whale cu welcome. Just a silly little coding I made up in my head right here, right now.
wanna know something? i completely forgot about the "or" part. it works now, thank you.

Quote:
Originally Posted by Streakster "Kiba" View Post
This is nice, but can I suggest moving the lightdash to one of the custom buttons? It'd make more sense. How about moving the stomp to maybe custom action 2, and lightdash to 3? I say this because the stomp collides and renders Super Sonic's flight unusable. Also, your stomp and double jump aren't compatible with Super Sonic's pallete.
ive noticed this as well so yes i will change the buttons. I'm not sure about the stomp palette but i will do what i can.


Thank you both for letting me know about these issues. i will fix as soon as possible.
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you

Last edited by MotdSpork; 04-22-2014 at 08:17 PM.
MotdSpork is offline   Reply With Quote
Old 04-22-2014   #13
Streakster "Kiba"
Ech.
 
Streakster "Kiba"'s Avatar
Default

Nice, the changes look more natural.
I don't mean to nitpick but the stomp is on Custom Action 3, as well as the Lightdash. So it's kind of hard to lightdash if you also stomp. Maybe move the stomp over to Custom Action 2? Other then that, this is really fun to use.
__________________
I don't have anything witty to put here.
Imagine I did.
Streakster "Kiba" is offline   Reply With Quote
Old 04-22-2014   #14
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

Quote:
Originally Posted by Streakster "Kiba" View Post
Nice, the changes look more natural.
I don't mean to nitpick but the stomp is on Custom Action 3, as well as the Lightdash. So it's kind of hard to lightdash if you also stomp. Maybe move the stomp over to Custom Action 2? Other then that, this is really fun to use.
strange i though i changed this as well. one moment.

Edit: OK its fixed now.
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you

Last edited by MotdSpork; 04-22-2014 at 10:45 PM.
MotdSpork is offline   Reply With Quote
Old 04-23-2014   #15
Wolfy
wolfs
Developer
 
Wolfy's Avatar
Default

Quote:
Originally Posted by The Zero Team View Post
Code:
if player.mo.state==S_PLAY_STND
or player.mo.state==S_PLAY_TAP1
or player.mo.state==S_PLAY_TAP2
or player.mo.state==S_PLAY_RUN1
or player.mo.state==S_PLAY_RUN2
or player.mo.state==S_PLAY_RUN3
or player.mo.state==S_PLAY_RUN4
or player.mo.state==S_PLAY_RUN5
or player.mo.state==S_PLAY_RUN6
or player.mo.state==S_PLAY_RUN7
or player.mo.state==S_PLAY_RUN8
    player.mo.state=SPD1
end
Your code is flawed. You can remove almost all of those extra statements with this:

Code:
if player.mo.state == S_PLAY_STND
or player.mo.state >= S_PLAY_TAP1
or player.mo.state >= S_PLAY_RUN1
    player.mo.state = S_PLAY_SPD1
end
and for the love of god PLEASE use proper syntax.

As for the issue with the MT_THOK mobj being discolored, that is an internal SRB2 issue and cannot be fixed without the lua backend having more access to the game's color selections.
__________________
Quote:
[23:56:36] <SM-MaxX> prisma illya is a gift to this impure earth and a shining beacon for all anime
Wolfy is offline   Reply With Quote
Old 04-23-2014   #16
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

so what could i do about the thok issue?
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you
MotdSpork is offline   Reply With Quote
Old 04-23-2014   #17
TailsFan99
Default Boost Bar Suggestion

Do you think you can add a boost bar?
TailsFan99 is offline   Reply With Quote
Old 04-23-2014   #18
The Zero Team
Default

Quote:
Originally Posted by Wolfy View Post
Your code is flawed. You can remove almost all of those extra statements with this:

Code:
if player.mo.state == S_PLAY_STND
or player.mo.state >= S_PLAY_TAP1
or player.mo.state >= S_PLAY_RUN1
    player.mo.state = S_PLAY_SPD1
end
I was tired when I typed that out. And I accidentally typed SPD1 instead of S_PLAY_SPD1. Also, I don't trust the "more than" or "less than" thing for states.


Quote:
Originally Posted by Wolfy View Post
and for the love of god PLEASE use proper syntax.
If you're talking about the lack of spaces between equal marks and variables and such, I have confirmed it works completely, and it does reduce filesize a tiny bit, especially if there are a lot of spaces otherwise.
Sure, it MIGHT look a bit more confusing to people other than me, but I like it, and I type SRB2 Lua coding that way.
The Zero Team is offline   Reply With Quote
Old 04-23-2014   #19
Sryder13
'That brit'
Judge
 
Sryder13's Avatar
Default

Quote:
Originally Posted by Wolfy View Post
Your code is flawed. You can remove almost all of those extra statements with this:

Code:
if player.mo.state == S_PLAY_STND
or player.mo.state >= S_PLAY_TAP1
or player.mo.state >= S_PLAY_RUN1
    player.mo.state = S_PLAY_SPD1
end
and for the love of god PLEASE use proper syntax.
That would probably be best done like this.

Code:
if not (player.mo.state >= S_PLAY_SPD1
    and player.mo.state <= S_PLAY_SPD4)
    and P_IsObjectOnGround(player.mo)
    player.mo.state = S_PLAY_SPD1
end
This way it just checks if they currently aren't in their running frames and if they're on the ground before setting the frames.

Quote:
Originally Posted by The Zero Team View Post
Also, I don't trust the "more than" or "less than" thing for states.
More than and less than work fine for states, since all those names are representing is numbers. When you know what states you're using within SRB2, it's fine. Most (if not all) states that are related are grouped together properly, so the only time you might find problems is when you define your own states in a weird order.
__________________
Quote:
<MonsterIestyn> try ctrl+f masturbation and get to the point

Last edited by Sryder13; 04-23-2014 at 11:29 AM.
Sryder13 is offline   Reply With Quote
Old 04-23-2014   #20
The Zero Team
Default

Quote:
Originally Posted by Sryder13 View Post
More than and less than work fine for states, since all those names are representing is numbers. When you know what states you're using within SRB2, it's fine. Most (if not all) states that are related are grouped together properly, so the only time you might find problems is when you define your own states in a weird order.
I know, I just don't trust it.
The Zero Team is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:55 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.