SRB2 Message Board  

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

Reply
 
Thread Tools
SRB2PlusC Details »»
SRB2PlusC
Version: 1.3.3, by chi.miru chi.miru is offline
Developer Last Online: Jun 2017

Category: Version: SRB2 Rating: (5 votes - 4.80 average)
Released: 03-19-2017 Last Update: Never Installs: 0
Re-Useable Content Code Changes

SRB2Plusc () is a mod that attempts to introduce some small new features for modders to take advantage of
It includes many features and more that I worked on in my spare time

Features & Documentation:

SOC/MAINCFG:
  • *titlemap (Maincfg): sets a game map as a title map (ZDooM) (DO NOT TRY TO NAME YOUR MAP TITLEMAP IN ZONE BUILDER)
(*requires Alternate View Point for camera setting)

  • hidetitlepics (Maincfg): hides the title graphics
Usage:
Code:
Maincfg


 # Set titlemap to be Egg Rock Zone 3
titlemap = 25


#Hide Title Screen
hidetitlepics = 1
  • bootmap (Maincfg): loads specified map number on game load, every time
Usage:
Code:
Maincfg
# Automatic Start on Greenflower Zone 1

bootmap = 01
  • levelwipe (Maincfg): loads a premade fade sequence in a wad before a level
  • postlevelwipe (Maincfg): loads a premade fade sequence in a wad after a level
  • wipecolor (Maincfg): wipes the screen to the specified palette index

Usage:
Code:
Level 1
...
levelwipe = 56
postlevelwipe = 57
wipecolor = 247
# wipe down on cyan
Lua:
  • boolean titlemap -- returns the titlemap number
  • boolean titlemapinaction -- returns titlemap active status
  • G_SetDisplayPlayer(player_t *player, int displayNumber, bool setAllDisplays) -- Send a F12 Key event
  • angle_t player.viewrollangle [experimental (use at own risk)|software] -- rolls the view by angle


  • S_SetMusicPosition(int position) [experimental] -- Set music position
  • S_GetMusicPosition() [experimental] -- returns current music position
Usage:
Code:
...
-- Sets (Greenflower Zone 1) 2 seconds in
S_SetMusicPosition(2000)
...
Over time, there may be more features that adds more functionality for cool uses in modding (such as the experimental speedmusic implimentation)


Download Mirror: https://drive.google.com/file/d/0Bwr...ew?usp=sharing

Source: https://github.com/yellowtd/SRB2-PLU...s_v2.1.17_main
https://github.com/yellowtd/SRB2-PLU...s_v2.1.18_main
http://git.magicalgirl.moe/STJr/SRB2/commits/io (should be netplay compatible until you start writing/reading files in a netgame)

Download Now

File Type: zip srb2plc v1.3.3.zip (1.62 MB, 159 views)

Screenshots

Click image for larger version

Name:	srb20002.gif
Views:	598
Size:	1.00 MB
ID:	10114   Click image for larger version

Name:	fademask-srb20002.gif
Views:	509
Size:	1.93 MB
ID:	10115   Click image for larger version

Name:	srb20003-tmap.gif
Views:	432
Size:	2.83 MB
ID:	10403  

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 05-10-2017   #22
chi.miru
Developer
 
chi.miru's Avatar
Default

Version 1.2.1 Released
----------------------------------
Added: Lua - add texture offset usage to sectors

Bugfix: Fix titlemap music change bug reported by Larztard
Bugfix: Prevent game crash if you go to a titlemap and it doesn't exist

Other: titlemap no longer prints "SPEEDING OFF TO [ZONE] [ACT 1]..." on screen when loaded
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 05-13-2017   #23
chi.miru
Developer
 
chi.miru's Avatar
Default

Version 1.3.2 Released
----------------------------------
Updated to support Version 2.1.18
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 05-16-2017   #24
chi.miru
Developer
 
chi.miru's Avatar
Default

Version 1.3.3 Released
----------------------------------
Added: Lua - Title screen HUD hook (eg. hud.add(hudFunction, "title"))

Bugfix: Support negative scroll speeds on title screen without game crash

Other: added reset for titlemap and other title attribute changes
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 05-17-2017   #25
Nomekop
 
Nomekop's Avatar
Default

Something that may be neat for a future addition, is a "Lua Options" menu for easy access to console variables added by Lua scripts.

Probably would only be able to work with booleans and raw numbers, unless you could have a way to indicate that it is text entry, or allow the script to define a range of selections to be switched through.

Might want to skip over cheat variables, since there is often good reason to not have those visible out in the open.
Nomekop is offline   Reply With Quote
Old 05-17-2017   #26
chi.miru
Developer
 
chi.miru's Avatar
Default

Quote:
Originally Posted by Nomekop View Post
Something that may be neat for a future addition, is a "Lua Options" menu for easy access to console variables added by Lua scripts.

Probably would only be able to work with booleans and raw numbers, unless you could have a way to indicate that it is text entry, or allow the script to define a range of selections to be switched through.

Might want to skip over cheat variables, since there is often good reason to not have those visible out in the open.
I would make an attempt if I knew how the menu structure worked at all
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 4 Days Ago   #27
Yacker
Metallic
 
Yacker's Avatar
Default

In a Lua script, how can I check if SRB2PlusC is being used over vanilla, so I could, say, enable certain features on it that require PlusC?
Yacker is offline   Reply With Quote
Old 4 Days Ago   #28
Monster psychic cat
 
Monster psychic cat's Avatar
Default

Quote:
Originally Posted by Yacker View Post
In a Lua script, how can I check if SRB2PlusC is being used over vanilla, so I could, say, enable certain features on it that require PlusC?
RPGBlast does this:
Code:
string.find(VERSIONSTRING, "PlusC")
__________________
Quote:
Q: Is it a virus?
A: Current version is not a virus. I may consider adding it in future versions.
Monster psychic cat 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 06:56 AM.


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