SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 06-25-2017   #1
ARTEZUI
Also known as CyberSonic
 
ARTEZUI's Avatar
Default Where is the object data for SRB2 located?

I want to make a few modified versions of bosses for my wad, but trying to recreate the scripts has constantly led to some sort of failure. I was wondering if I could find the already existing scripts to make my simple few modifications easier to do, or if there is any way to access them. If so, where are they located?
ARTEZUI is offline   Reply With Quote
Old 06-25-2017   #2
Zwip-Zwap Zapony
Please just call me Zappy.
 
Zwip-Zwap Zapony's Avatar
Default

In the source code (specifically in info.c, I believe). However, you may want to use the wiki to look up the bosses (example), look in the object and state info on those pages, and recreate them from the info provided there, as the list in the source code is mostly pretty un-labelled so you have to know what value goes where to modify it easily. You will still have to recreate or at least edit it, anyway, as the source code syntax is different from the SOC syntax, so you might as well just use the labelled information from the wiki for it.
Zwip-Zwap Zapony is offline   Reply With Quote
Old 06-25-2017   #3
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

info.c/h only contains the basic data for all states and object types and sprites mind, the stuff that could be reproduced by SOC alone. If you want the code for the actions the states use, check p_enemy.c. If you want the rest of the thinking code for objects check p_mobj.c or perhaps p_user.c (the latter file is mostly relevant for players).

Bosses in particular tend to use a mix of actions and hardcoded thinkers to do their stuff usually. With the exception of 2.1's Brak Eggman though, that's all done in SOC IIRC.

Last edited by Monster Iestyn; 06-25-2017 at 08:30 PM.
Monster Iestyn is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:47 AM.


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