SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Mods (2.0.X) (https://mb.srb2.org/forumdisplay.php?f=100)
-   -   srb2Morphed.exe [2.0.6.2] (https://mb.srb2.org/showthread.php?t=31291)

Morph 08-20-2009 09:30 AM

srb2Morphed.exe [2.0.6.2]
 
2 Attachment(s)
Since I like playing around with socs very much I thought of things that might improve the customization capabilities of the game. I messed around with the sourcecode for a while and created some new soc actions. The ones that turned out well I am now willing to release.

Here a little page that covers documentation: http://machjetztendlich.uuuq.com/srb...b2morphed.html

Feel free to use the exe for your own projects.
Don't bother asking questions if you want to know more details about how some of the actions work.
If you encouter bugs while using them, please, tell me! ^^'

------------------------

Edit / Update:

Version 2.0.6.2 features new hardcoded character abilities:
Telekinesis (#50), Fall Switch (#51), Jump Boost (#52), Air Drill (#53)

MrSmartie 08-20-2009 08:21 PM

i like this little exe extra soc editor stuff. Good Job. (8.75 out of 10)

Gemini Spark 08-21-2009 12:36 AM

How am I supposed to add this file to the game properly?

Daywalker 08-21-2009 01:14 AM

Quote:

Originally Posted by Gemini Spark (Post 636390)
How am I supposed to add this file to the game properly?

ADDFILE motest.soc

I really like this mod! It was fun too see the socced actions!

Bio Spark 08-21-2009 01:45 AM

This is really good for Soccing tutorial. Very Nice work Morph

dark dragon 08-21-2009 04:52 AM

Wait does this work on the old or new verson? I'm asking cause I'm not going to download tonight due to too much going on but maybe on the morning but I want to know before I go ''ok it won't work on this...why???'' and feel like a moron.

MascaraSnake 08-21-2009 07:43 AM

Quote:

Originally Posted by dark dragon (Post 636440)
Wait does this work on the old or new verson? I'm asking cause I'm not going to download tonight due to too much going on but maybe on the morning but I want to know before I go ''ok it won't work on this...why???'' and feel like a moron.

EVERYTHING in the releases section is for the new version.

Morph 08-21-2009 10:30 AM

@Gemini Spark:
Exe mods work the same way as the regular "srb2win.exe". You just need to extract the file into your srb2 main folder and then execute it. However, since this mod does not change the existing code BUT adds new stuff to the game you'll need to add the test soc file to the game after you executed srb2morphed.exe or else you'll see no differences.



@Biospark:
Uhm... thanks but if you are refering to the soccing tutorial you chose the wrong thread to answer to. ^^'



@dark dragon:
The current status is the one of SRB2's 2.0.4 version.
This is why I labeled the version of the addon settings 2.0.4.2 instead of 0.2. I'll change the topic title to remove ambiguity.

ViluVector 08-22-2009 07:52 PM

Wow, I like your work on the SOCs
But I dont think that this is a mod.

Sonso 08-23-2009 03:23 PM

You got pics? Just want to see it for myself before I download it....

Morph 08-23-2009 09:50 PM

UPDATE

Custom values have been implemented.

If anyone of you knows a little bit about WC3 mapping you might also know the concept of custom values. Each object has its own custom variable that has no use by default. It can be manipulated in many ways and it has its own "A_Check..." function. One object is also able to change the custom value of another one, too.
There are multiple possibilities to use it. You could, for example, raise it step by step with each frame cycle run and perform a special action each 5 runs. This way you can reduce your ammount of used freestates.

I hope I got all buggs fixxed. If you encounter one let me know! ^^'


New action names:
A_CheckCustomValue, A_CheckCusValMemo, A_SetCustomValue, A_UseCusValMemo, A_RelayCustomValue

Take a look at the documentation page (first post) to find out more.



Edit: I encountered a minor bugg... I forgot two if-blocks so now everytime you manipulate the custom value it will be displayed, even if devmode is turned off. I'll fixx it later. Everything still works fine. It's just a little annoying. ^^'

Edit2: FIXXED

Sergeant Brown 08-28-2009 02:32 PM

As for the SOC, it's impressive, especially for the boss.
9,5/10.

As for the EXE, agreed, it has new, re-usable content when doing new enemies, etc. However, that's all that it has as a difference between 2.0 and this one.
But still, it's those contents that gives you a 5/10.

K.S. 08-29-2009 06:02 AM

A quick glance on the SVN shows me that you didn't modify p_saveg.c to accommodate the new mobj variables (cusval and cvmem). Thus, you've broken $$$.sav, and as such, netplay.

Oops?

Morph 08-29-2009 08:56 AM

Whoopsy... O__o
That IS a problem! Right now I don't have enough time to fix it, but I'll definitely cover that as fast as I could. Thanks for the advice!

It has to be applied right here... has it?
Code:

static void P_NetArchiveThinkers(void)
{. . .}


AlamGBC 08-29-2009 01:27 PM

too slow...
already applied a bunch of fixes to your MORPH branch
Code:

SRB2MORPH: NORMALSRB2 r3971
SRB2MORPH: NORMALSRB2 r3972
SRB2MORPH: whitespace r3972
SRB2MORPH: killed warnings and error from r3972
SRB2MORPH: indent fixup
SRB2MORPH: use M_PI
SRB2MORPH: write/read cusval and cvmem in netgame state


Morph 08-29-2009 05:39 PM

Wohoo! ^___^

Alam = AWESOME

I'll recompile the exe and make an update after I have applied a few other fixes and added a new action... even though this might take some time. (I'm quite bussy at the moment...)

Tuner Knightmare 09-06-2009 08:30 AM

Um, what's different? I put it in, and all that was differnt, was me getting shot forward when destroying a robot

Morph 09-12-2009 10:15 PM

UPDATE

First of all thanks a lot to Alam and Matt for letting me know when I screw up or even fixing broken pieces of code!
  • Netgames should work now.
  • A_InstaLoop and A_MultiShot have been changed so that they make use of uppercase and lowercase variables.
  • New soc actions have been implemented:
    • A_CheckRandom: Calls a state by chance (1/x)
    • A_CusValAction: Calls a soc action from a reference state applying custom values as var1 or var2

Look at the documentation page for more details.
As usual feel free to ask whatever you want to know or to submit ideas for new soc actions that might come in handy.

mamaluigi 12-10-2009 11:58 AM

I add the .soc file but it writes the file doesn't exist!

SML 12-11-2009 05:04 PM

You probably tried to add something different, via a spelling error.


All times are GMT. The time now is 02:01 PM.

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