SRB2 Message Board  

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

Reply
 
Thread Tools
SRB2PlusC Details »»
SRB2PlusC
Version: 1.04.4, by chi.miru chi.miru is offline
Developer Last Online: Sep 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:

Full Documentation: https://docs.google.com/document/d/1...it?usp=sharing

Full Changelog: https://docs.google.com/document/d/1...it?usp=sharing

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:
Last: https://github.com/yellowtd/SRB2-PLU...s_v2.1.18_main
Current: https://github.com/yellowtd/SRB2-PLU...s_v2.1.19_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.04.4.zip (1.62 MB, 70 views)

Screenshots

Click image for larger version

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

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

Name:	srb20003-tmap.gif
Views:	733
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
frozenLake
 
frozenLake'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.
frozenLake 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 06-22-2017   #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 06-22-2017   #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:
VERSIONSTRING:find("PlusC")
__________________
Quote:
Originally Posted by MotorRoach
I see fists and a pussy

Last edited by Monster psychic cat; 08-07-2017 at 01:23 AM. Reason: >not using the faulty object model
Monster psychic cat is offline   Reply With Quote
Old 07-27-2017   #29
chi.miru
Developer
 
chi.miru's Avatar
Default

Version 1.03.4 Released
----------------------------------
Updated to support Version 2.1.19
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 1 Week Ago   #30
chi.miru
Developer
 
chi.miru's Avatar
Default

Version 1.04.4 Released
----------------------------------
Added: Lua - "small_center" "thin_center" made available in v.drawString(...) aligning
Added: Lua - S_ChangeMusicFadeIn(name,looping,int ms) :: fade in background music

Added: Lua - S_FadeOutMusic(int ms) :: fade out background music
Added: Lua - S_MusicVolume(int volume) :: change background music volume (does not affect digmusicvolume)

Other: Added official documentation and change-log for features and additions in the original post
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 1 Week Ago   #31
choalover
チャオノコイビト
Default

The mod crashes on startup, and yes I have the latest version.

W_GetNumForName: TRANSA0 not found!

I think a change that was made somewhere broke this mod.
__________________
I love the new SRB2 2.1.17 update so far.

Last edited by choalover; 1 Week Ago at 02:22 PM.
choalover is offline   Reply With Quote
Old 1 Week Ago   #32
chi.miru
Developer
 
chi.miru's Avatar
Default

Quote:
Originally Posted by choalover View Post
The mod crashes on startup, and yes I have the latest version.

W_GetNumForName: TRANSA0 not found!

I think a change that was made somewhere broke this mod.
You need to re-download it
__________________
=- SRB2 Projects Page -=
chi.miru is offline   Reply With Quote
Old 1 Week Ago   #33
choalover
チャオノコイビト
Default

Quote:
Originally Posted by chi.miru View Post
You need to re-download it
Thanks! Now SRB2PlusC is working like it is supposed to. The issue was the attachment on this thread being corrupted.
__________________
I love the new SRB2 2.1.17 update so far.
choalover is offline   Reply With Quote
Old 1 Week Ago   #34
Monster psychic cat
 
Monster psychic cat's Avatar
Default

I don't see a player_t argument in S_ChangeMusicFadeIn, S_FadeOutMusic, and S_MusicVolume. Do they affect all players? (Or it's a local thing)
__________________
Quote:
Originally Posted by MotorRoach
I see fists and a pussy
Monster psychic cat is offline   Reply With Quote
Old 1 Week Ago   #35
chi.miru
Developer
 
chi.miru's Avatar
Default

Quote:
Originally Posted by Monster psychic cat View Post
I don't see a player_t argument in S_ChangeMusicFadeIn, S_FadeOutMusic, and S_MusicVolume. Do they affect all players? (Or it's a local thing)
They all work the same as default functions where player is the last argument, and player is moved to argument 4 in ChangeMusic
__________________
=- SRB2 Projects Page -=
chi.miru 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 08:39 AM.


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