SRB2 Message Board  

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

Closed Thread
 
Thread Tools
SRB2PlusC Details »»
SRB2PlusC
Version: 1.04.4, by chi.miru chi.miru is offline
Developer Last Online: Dec 2017

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

This mod is no longer being maintained and is not compatible with versions past 2.1.19.

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, 1559 views)

Screenshots

Click image for larger version

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

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

Name:	srb20003-tmap.gif
Views:	2091
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
chi.miru is offline  
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
chi.miru is offline  
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
chi.miru is offline  
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  
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
chi.miru is offline  
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  
Old 06-22-2017   #28
Monster psychic cat
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")

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  
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
chi.miru is offline  
Old 09-11-2017   #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
chi.miru is offline  
Old 09-11-2017   #31
choalover
Just a random person
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.
__________________
EmpiralMP v1.1.4 Official Thread: https://mb.srb2.org/showthread.php?t=43548

Last edited by choalover; 09-11-2017 at 02:22 PM.
choalover is offline  
Old 09-11-2017   #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
chi.miru is offline  
Old 09-11-2017   #33
choalover
Just a random person
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.
__________________
EmpiralMP v1.1.4 Official Thread: https://mb.srb2.org/showthread.php?t=43548
choalover is offline  
Old 09-11-2017   #34
Monster psychic cat
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)
Monster psychic cat is offline  
Old 09-11-2017   #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
chi.miru is offline  
Old 10-19-2017   #36
Monster psychic cat
Default

Using S_FadeOutMusic in a MIDI makes the fade music volume stay, even after restarting SRB2
Test script:
PHP Code:
local timer 0
addHook
("MapLoad",do
    
timer 0
    S_ChangeMusic
("MAPAAM",true)
end)
addHook("ThinkFrame", do
    if 
timer == 1*TICRATE
        S_FadeOutMusic
(7000,player)
    
end
    
if timer == 6*TICRATE
        S_ChangeMusic
("MAP01M",true)
    
end
    timer 
= $1+1
end

Attached Files
File Type: lua musicfadetest.lua (256 Bytes, 359 views)
Monster psychic cat is offline  
Old 10-21-2017   #37
chi.miru
Developer
 
chi.miru's Avatar
Default

Quote:
Originally Posted by Monster psychic cat View Post
Using S_FadeOutMusic in a MIDI makes the fade music volume stay, even after restarting SRB2
Test script:
PHP Code:
... 
Sorry! I couldn't find an option or a way to alter midi in the mixer code. You may just have to use other formats.
chi.miru is offline  
Old 10-21-2017   #38
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

If it answers your questions as to why that might be the case, apparently MIDI volume adjustment is borked in Windows 7, and IIRC we disabled changing the MIDI volume in SRB2 itself for now anyway.
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".
Monster Iestyn is offline  
Old 12-28-2017   #39
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

There's something wrong with io; creating subfolders doesn't work at all and results in an error when closing the file. This works fine with SRB2+IO, however.

Code:
local write = io.open("testfolder/testfile.txt", "w")
io.output(write)
io.write("text goes here", "\n")
io.close(write)
The following results in
Code:
/KCGC.wad|LUA_MAIN:57: bad argument #1 to 'close' (FILE* expected, got nil)
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline  
Old 01-06-2018   #40
fickleheart
gender collector
 
fickleheart's Avatar
Default

Since it's come up multiple times, this mod is no longer being maintained or updated for new patches, so please do not ask about it.
__________________
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  
Closed Thread

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 04:42 PM.


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