Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding

Notices

Savage 2 Modding Discussion of all things related to making mods of Savage 2

Reply
 
Thread Tools Display Modes
Old 03-26-2012, 12:13 PM   #1
ohorani

ohorani's Avatar
 
Join Date: Jul 2010
Location: Seoul Korea
Posts: 45
Thanks: 2
Thanked 32 Times in 13 Posts
Default Improved replay browser

Hi there.

I'm trying make my own replay tutorial which suggested by Old55. While doing this work, I feel uncomfortable to test my replay tutorial. I should keep typing "StartReplay ....; Exec .... ". This made me piss off.

So I made some restricted solution for testing replay tutorial. I fixed "game/ui/main_replay_browser.xml" like followings.

1. Make wider replay browser UI. So you can see more replay file name. It's very handy for replay collectors.



2. When replay started, It will also "Exec" associated .cfg file for replay tutoral. For example when you start replay named "replay_test.s2r", it also execute "replay_test.s2r.cfg" file. (not "replay_test.cfg") So If you have other replay tutorial file and If you want play it from replay browser, you should rename .cfg file to ".s2r.cfg".

Because I'm newbie for K2 scripting and don't know how to manipulate string except merging. So this approach is my best.

---------
Installation
---------
Download this file ( https://sites.google.com/site/koreas...ay_browser.xml ), and move it to ~/.savage2/game/ui directory.

---------
Test
---------
Download this file provided by Old55 ( https://sites.google.com/site/koreas...eplay_test.zip ), and extract into ~/.savage2/game/replays directory.
And go to replay browser and select "replay_test" item and go.

-----------
What did I do?
-----------
I searched "StartReplay(*('_replay_' # _replay_selected))" part, And added "Exec(*('_replay_' # _replay_selected) # '.cfg');" right after.
There's two part to add.

------------
Suggestions
------------
If authors of replay tutorial provide script file extension as .s2r.cfg, this modification of replay browser is very handy for viewers and makers.

More advice and test results are welcome.

Last edited by ohorani; 03-29-2013 at 03:03 AM.
ohorani is offline   Reply With Quote
The Following 5 Users Say Thank You to ohorani For This Useful Post:
PetzI (03-29-2013), Pidgeoni (03-26-2012), rancho (03-26-2012), S2stony (03-26-2012), SonOfAthena (03-26-2012)
Old 03-29-2013, 02:36 AM   #2
meankitty2

meankitty2's Avatar
 
Join Date: Aug 2009
Posts: 492
Thanks: 332
Thanked 75 Times in 58 Posts
Default

Perhaps its a little old thread.. but I was looking at it, and I'm curious.. yet I don't want to install something, and then unninstall it, (if I won't like it).. can I get some screenshots?
meankitty2 is offline   Reply With Quote
Old 03-29-2013, 03:04 AM   #3
ohorani

ohorani's Avatar
 
Join Date: Jul 2010
Location: Seoul Korea
Posts: 45
Thanks: 2
Thanked 32 Times in 13 Posts
Default

I uploaded screen shot of replay browser improvement mod. FYI
ohorani is offline   Reply With Quote
Old 03-29-2013, 12:47 PM   #4
meankitty2

meankitty2's Avatar
 
Join Date: Aug 2009
Posts: 492
Thanks: 332
Thanked 75 Times in 58 Posts
Default

Oh, it wasn't visable earlier. sorry
meankitty2 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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



All times are GMT. The time now is 09:28 PM.