News: Create your own galactic empire! OGame at Chaos Project!

Pages: [1]
  Print  
Author Topic: [XP] Chaos Project Save Layout  (Read 3155 times)
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« on: March 19, 2008, 04:45:25 PM »

Chaos Project Save Layout
Authors: Fantasist, Blizzard
Version: 1.4
Type: Save/Load Scene Mod
Key Term: Title / Save / Load / GameOver Add-on

Introduction

This replaces the default Save/Load scenes with the layout from the game Chaos Project.

Features

Features taken from Chaos Project:
  • The layout
  • Confirm overwrite window (optional)
  • Detects and uses the windowskin from the savefile (useful with other scripts which enable in-game changing of windowskins)
  • Detects and uses the font from the savefile (made to work with Ultimate Font Override from Tons of Addons)
  • Load-on-demand feature which temporarilyloads save data for faster file selection. Handy especially when using scripts like DREAM
  • Prevents crashing and displays 'Corrupted save data' (customizable) if a savefile is corrupted
  • Compatible with DREAM for Savefiles
  • Location names (optional)

Additional features:
  • Chapter System (optional)
  • Following things are customizable: number of save slots, savefile name, savefile extension, savefile location, text in the Save/Load scene (help window text, overwrite prompt text, etc)

Screenshots

(Courtesy Blizzard)



Demo

Come on already, this is almost plug-and-play! (Demo on demand, but respect my laziness ^_^)

Script

Installation: Place this script anywhere above main and below Scene_Load. Place above Tons of Addons if you're using it.
(click to show/hide)

Now, search for the following or similar in Scene_Title:
Code:
    @continue_enabled = false
    for i in 0..3
      if FileTest.exist?("Save#{i+1}.rxdata")
        @continue_enabled = true
      end
    end

Comment those lines and add this line:
Code:
    @continue_enabled = (0...CPSL::Save_number).any? {|i|FileTest.exist?(CPSL.make_savename(i))}


Instructions

In script header.

Compatibility

Quote
#------------------------------------------------------------------------------------------------------------------------
# Compatibility:
#
#   Might not be compatible with other save/load systems. 99% compatible with everything else.
#   Compatible with 'Ultimate Font Override' from Tons of Addons, 'Storm Tronics CMS' and
#   'DREAM for Savefiles' by Blizzard.
#------------------------------------------------------------------------------------------------------------------------

Credits and Thanks

Credits: Fantasist for making this, Blizzard for the layout
Thanks: Blizzard (and his game Chaos Project) for the original layout and inspiration

Author's Notes

   I'm not perfectly happy with the bars. If anything seems too troublesome or annoying while using the script, please let me know. I want to make this as practically pleasant as possible.

If you have any questions, problems or suggestions, you can find me at:
 - www.chaos-project.com
 - www.quantumcore.forumotion.com
Enjoy ^_^
« Last Edit: February 21, 2009, 11:49:40 AM by Blizzard » Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Champion Blizzard
Where am I?
Administrator
Has over 9000 posts
***

Level: 349
Offline Offline

Gender: Male
Posts: 9559


South Park's Chinpokomon are more awesome.


View Profile WWW
« Reply #1 on: March 19, 2008, 04:48:58 PM »

I use load-on-demand as well if you haven't noticed. ^_^

BTW, add the [RMXP] tag to the topic's title.
Logged



(click to show/hide)
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #2 on: March 19, 2008, 05:00:38 PM »

Forgot in the excitement. And yeah, I know. When 1.3 is out, it'll be added to the Features from CP list :D
Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Flermza
Basic Member
*

Level: 5
Offline Offline

Gender: Male
Posts: 76


I am the flame beneath the darkness.


View Profile
« Reply #3 on: March 19, 2008, 05:01:13 PM »

Great work, Fantasist!
Logged

Inactivity in SPAM for me... Sorry, I shall return to Chaos-Project Spam as soon as possible. XD)
Champion Blizzard
Where am I?
Administrator
Has over 9000 posts
***

Level: 349
Offline Offline

Gender: Male
Posts: 9559


South Park's Chinpokomon are more awesome.


View Profile WWW
« Reply #4 on: March 19, 2008, 05:45:11 PM »

I just tested it, nice job on it. Here are my suggestions and comments:

1. In your header it says v1.0 while in the version history it says v1.2. xD

2. When you try to overwrite a file and choose "No", the next time you select a file to overwrite, the cursor was memorized and is still pointing at "No". You should reset it.

3. This piece here:

Code:
    if @index == i
      return
    else
      @index = i
    end

Just this is enough:

Code:
    return if @index == i
    @index = i

4. Interesting, you used the load bar for the load state of the files. I used the load bar when actually loading the game data. I only display "Loading file..." when a file is being loaded to display. Of course, it doesn't have to be a complete clone so I think you should leave it that way.

5. Change

Code:
    if @list_win.active
      update_list
      return
    end
    if @confirm_win.active
      update_confirm
      return
    end

to

Code:
    if @list_win.active
      update_list
    elsif @confirm_win.active
      update_confirm
    end

6. Change

Code:
      @continue_enabled = false
      (0...CPSL::Save_number).each {|i|
      @continue_enabled = true if FileTest.exist?(CPSL.make_savename(i))
      }

to

Code:
      @continue_enabled = (0...CPSL::Save_number).any? {|i|
          FileTest.exist?(CPSL.make_savename(i))
      }

7. There's a "little glitch" in the title menu. Initially the "Continue" option is not enabled and is being enabled after the loading was done. You should add instructions how to edit the title script instead of making your script do the work. I did the same in DREAM for Savefiles.

8. Load-on-demand will become very useful if somebody can't resist to use more 50 fileslots... >.<

9. I put up 2 screenshots. :Happy
« Last Edit: March 19, 2008, 05:47:14 PM by Blizzard » Logged



(click to show/hide)
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #5 on: March 19, 2008, 06:32:58 PM »

@Flermza; Thank you Happy

@Blizz:

Quote
In your header it says v1.0 while in the version history it says v1.2. xD
Oops! Will have to correct that.

Quote
2. When you try to overwrite a file and choose "No", the next time you select a file to overwrite, the cursor was memorized and is still pointing at "No". You should reset it.
I know, I just forgot to do it.

Quote
return if @index == i; @index = i
lol! I wrote that code just to get it out of the way at that moment and never bothered to correct it.

Quote
4. Interesting, you used the load bar for the load state of the files. I used the load bar when actually loading the game data. I only display "Loading file..." when a file is being loaded to display. Of course, it doesn't have to be a complete clone so I think you should leave it that way.
Well, I know. But since it's a substitute for load-on-demand and it's noticable, I had to make a loading bar there. And the loading bar when actually loading a save, I know how to make a bar for normal Marshal files, but DREAM has DREAM.data(file) to directly get the data, is there a way I can make a loading bar which is not a fake? (I'd never want to put a fake bar, so I decided to just make 'Loading...' without the bar).

Quote
if @list_win.active
      update_list
    elsif @confirm_win.active
      update_confirm
    end
Point to be noted. But I think the scene messes up if I don't use 'return', I guess the 'elsif' takes care of that. ty Happy

Quote
@continue_enabled = (0...CPSL::Save_number).any? {|i|
          FileTest.exist?(CPSL.make_savename(i))
      }
I was in a hurry to get the Scene_Title thing out of the way, I didn't realize >.<

Quote
7. There's a "little glitch" in the title menu. Initially the "Continue" option is not enabled and is being enabled after the loading was done. You should add instructions how to edit the title script instead of making your script do the work. I did the same in DREAM for Savefiles.
I wanted to mention about it, but it makes the script 100% plug-and-play. I'll remove that when this becomes beta (when this becomes worthy of having to change a script, lol!)

Quote
8. Load-on-demand will become very useful if somebody can't resist to use more 50 fileslots... >.<
lol, yeah. I tested it with 100 save slots and it takes a couple of seconds even without no savefiles. (but at least the loading bar looks nice... ahem...)

Quote
9. I put up 2 screenshots.
Hey! Where's the screenshot of the confirmation window Angry
j/k
Very much appreciated :D
« Last Edit: March 19, 2008, 06:40:00 PM by Fantasist » Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Champion Blizzard
Where am I?
Administrator
Has over 9000 posts
***

Level: 349
Offline Offline

Gender: Male
Posts: 9559


South Park's Chinpokomon are more awesome.


View Profile WWW
« Reply #6 on: March 19, 2008, 06:53:46 PM »

4. Not without hacking DREAM. I use a modified version of DREAM for CP of course. The only thing that COULD work is if you hack DREAM and extract the method "dream4_decryption" AND mess around with it.

7. Some scripts just can't work plug-n-play. ._.

8. 2.5 seconds with 100 empty files.

9. Add it yourself. Tongue
« Last Edit: March 19, 2008, 06:54:32 PM by Blizzard » Logged



(click to show/hide)
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #7 on: March 19, 2008, 07:12:56 PM »

4. - I guess I have to accept it. (and can and will you sue me if I DID hack DREAM, modify the method and upload the new files? Now that I think about it, your license allows derivative works with proper attribution...)

7. - I just made it work Tongue (by compromizing effeciency and a nagging piece of concience that tells me I coded a lame excuse for "Some scripts just can't work plug-n-play", lol)

8. - Speaking of which I've been uising Time.now a lot lately.

9. - lol, OK Tongue

(click to show/hide)
Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Sally
Sallygirl :P
Remexos Team Member
Astral Trancist
*****

Level: 10
Offline Offline

Gender: Female
Posts: 1260

Lodi Dodi We Loves The Skadi


View Profile
« Reply #8 on: March 19, 2008, 07:59:53 PM »

this seems cool,
what dose "Customizable savefile extension" mean?
Logged

My Girl Loves to Skadi All the Time
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #9 on: March 19, 2008, 08:06:42 PM »

thanks Happy It's a complete script I did after a long time.

Customizable Savefile extension means your savefiles can have any extension you want other than .rxdata, just like Chaos Project saves have the extension .cps (Chaos Project Save).

Oh! And if you're using DREAM, don't forget to change it accordingly! (got to add this line in v1.3)
Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Champion Blizzard
Where am I?
Administrator
Has over 9000 posts
***

Level: 349
Offline Offline

Gender: Male
Posts: 9559


South Park's Chinpokomon are more awesome.


View Profile WWW
« Reply #10 on: March 25, 2008, 02:02:22 PM »

4. - I guess I have to accept it. (and can and will you sue me if I DID hack DREAM, modify the method and upload the new files? Now that I think about it, your license allows derivative works with proper attribution...)

Hack DREAM and see what happens. There is a license redefinition in there. WcW found it already. xD
Logged



(click to show/hide)
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #11 on: March 25, 2008, 02:24:44 PM »

I'm not even a beginner at hacking XD
I normally use notepad to open files when I want to look at them. I DID try a hex editor once, but everything was Greek and Latin. I don't think I'll go that far, I can pass without the loading bar. For now, I just used the bar, but it only displays 0 and 100%. 0% when starting to load the data, and 100% when done. It's not really fake, but it'll look better without the bar and only words imo. I'll do that later.
Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Champion Blizzard
Where am I?
Administrator
Has over 9000 posts
***

Level: 349
Offline Offline

Gender: Male
Posts: 9559


South Park's Chinpokomon are more awesome.


View Profile WWW
« Reply #12 on: March 25, 2008, 06:28:28 PM »

You just need to figure out how it gets decoded, nothing more. It's not even REAL hacking. :Happy
Logged



(click to show/hide)
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #13 on: March 26, 2008, 01:10:14 PM »

Will give it a shot then, ty Happy

EDIT: v1.4 is up.

New features:
 - A little remodel (gave more space for the names of actors)
 - Chapter System and location names added
 - Other little things I can't remember right now
« Last Edit: April 04, 2008, 04:00:42 AM by Fantasist » Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Sase
Basic Member
*

Level: 1
Offline Offline

Gender: Male
Posts: 86



View Profile
« Reply #14 on: April 06, 2008, 08:01:47 AM »

Nice, I will use ^^;

I searched the script but it's too messy for me. How to change the "overwrite"-choices default by No, because it may prevent some mishabs if you accidently press Enter.
Logged
Mad Scientist Fantasist
Astral Trancist
*****

Level: 119
Offline Offline

Gender: Male
Posts: 1840


Stopped using RMXP (until furthur notice).


View Profile WWW
« Reply #15 on: April 06, 2008, 07:10:49 PM »

Hm, good point. For the time being, find Scene_File and scroll down to 'def update_list'. Somewhere below that line, you'll find these lines:

Code:
def update_list
    @list_win.update
    if Input.trigger?(Input::C)
      if $scene.is_a?(Scene_Save) && CPSL::Confirm_Overwrite &&
        FileTest.exist?(make_filename(@list_win.index))
        @list_win.active = false
        @confirm_win.index = 0
        @confirm_win.visible = @confirm_win.active = true
        .
        .
        .

Now, change the 0 in "@confirm_win.index = 0" to 1 and you're done.
Logged

Stopped using RMXP until further notice.<br /><br /><br />“Understanding rules is important because you should know when and how to break them.”<br /> - ???<br /><br />
Pages: [1]
  Print  
 
Jump to:  


*
*
Shoutbox
Latest Shouts
View All
Today at 10:22:19 PM Elite Four Aqua - I deleted that thread
Today at 10:14:54 PM Jek - Aqua, I am going to guess I need more posts or something to post there. It tells me I am not allowed to see that link you posted.
Today at 09:19:31 AM Trainer Zydragon - LOL Branden Ill remove it Tongue
Today at 07:19:57 AM Elite Four Aquahttp://forum.chaos-project.com/index.php/topic,5873.new.html#new I posted something just fine... o.o
Today at 07:17:05 AM Trainer Branden - Someone that's a mod get on Cait Sith's Domain and remove the porn that some douchebags have posted before his site gets removed! D:
Today at 07:16:13 AM Trainer Branden - FUCK
Today at 07:14:16 AM Jek - Error 403: Forbidden
Today at 07:13:22 AM Jek - I can't seem to post stuff in the resource section...
Today at 06:51:53 AM Professor Ryexander Elm - for G_G
Code:
p = (actor.next_exp != 0 ? actor.now_exp.to_f / actor.next_exp : 1)
that is what you should use for exe % calulation
Today at 06:20:38 AM Hellfire's G_G - Nope sorry D:

View All


RPG RPG Revolution ZVC Studios Time Stop Gamez HGW Development Evermoon Designs Sandbox Game Maker Loveless Entertainment