Author Topic: [XP] Disc Changer - If you need more than 999 maps  (Read 15463 times)

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
[XP] Disc Changer - If you need more than 999 maps
« on: August 21, 2008, 04:15:34 PM »
Disc Changer
Authors: Zeriab
Version: 1.05
Type: Feature Simulator
Key Term: Game Utility

Introduction

This script allows you to change discs where each disc can contain 999 maps.
The transitions between each disc works seamlessly just like a normal transfer.

Features

  • Allows to have more than 999 maps.
  • Seamless trasition.

Screenshots

None needed for this.

Demo

http://zeriab.plesk3.freepgs.com/root/scripts/ChangeDisc.rar

Script

Paste the script just above main.
IF you have the SDK then you are done.

If you do NOT have the SDK:
Find Game_Map in the script editor.
Go to the setup method to around line 50 (assuming the default script)
It should look like this:
Code: [Select]
    # Load map from file and set @map
    @map = load_data(sprintf("Data/Map%03d.rxdata", @map_id))

Change the second line so the end result is this:
Code: [Select]
  # Load map from file and set @map
  @map = load_data(sprintf("Data/%sMap%03d.rxdata", $game_system.disc, @map_id))

You have now installed the script.

(click to show/hide)

Instructions

To create a disc you must create a subfolder in the Data folder called Disc1 for disc 1, Disc2 for disc 2 and so on. In general Disc#.  (You should be perfectly able to do Disc14 and so on.)
Then put the maps you want in that subfolder.
When you have done this you can use the instructions in the script header for changing the disc. (The script call is the event command on the third page, bottom-right)

Note that disc 0 is special in that it uses the maps directly in the data folder and not Disc0. These are the maps you can see in the editor.

You could have a project for each disc. That way it's easier to change the maps on each disc any time you want. Just copy paste the changes into the main project when you have made the changes.
You can also just copy the other .rxdata files from the main project into the disc project for making sure the rest of the database and scripts are the same in each project.

Version 1.05:
You can now call the change_disc method with a string instead of a number of the disc. In this case the folder with the given name will be used.


Compatibility

This is probably not compatible with scripts that reads MapInfos.rxdata and displays the names of each map.
You must alter those scripts so it reads the MapInfos.rxdata for the corresponding disc.
You can try to find the place with load_data("Data/MapInfos.rxdata") and change it to this:
Code: [Select]
load_data(sprintf("Data/%sMapInfos.rxdata", $game_system.disc))
Credits and Thanks

  • Credits goes to Zeriab for writing the script.
  • Thanks goes to Legend of Harpine for which this was originally designed.
  • Special thanks goes to Kain Nobel


Terms and Conditions
(click to show/hide)


Author's Notes

I would be delighted if you report any bug, errors or issues you find.
In fact I would be delighted if you took the time and replied even if you have nothing to report.
Suggestions are more than welcome

And finally: ENJOY!

 - Zeriab
« Last Edit: February 21, 2009, 12:58:34 PM by Blizzard »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #1 on: August 21, 2008, 04:45:13 PM »
I use CC's license. ^_^
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #2 on: August 21, 2008, 05:09:46 PM »
You are more strict than me :P

There an additional restriction to the terms.
I did originally make it for a commercial game, but asked if I could post it freely. (He would naturally not have to pay for me scripting it)
See if you can spot what it is XD

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #3 on: August 21, 2008, 05:11:48 PM »
Is it this?

Quote
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

I don't know the GNU license from memory, but I don't recall this piece.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #4 on: August 21, 2008, 05:40:00 PM »
Nope.

I am so gonna say this when it finally is true!

YOU ARE WRONG BLIZZARD.

Luckily not very much ^^
I mean no flaming though, it's mean as a joke ^^

Note: It seems that vgvgf's decryptor/extractor won't extract the maps on any of the discs except disc 0 (those directly in the data folder)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #5 on: August 21, 2008, 05:42:30 PM »
Not entirely.

I don't know the GNU license from memory, but I don't recall this piece.

I naturally can't recall it because I don't know the license from memory. Nevertheless I was wrong. ;_;
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Diokatsu

  • Wind God
  • Lexima Warrior
  • *******
  • Posts: 2805
  • LV: 52
  • Gender: Male
  • Fuck yes.
    • View Profile
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #6 on: August 21, 2008, 05:44:36 PM »
Diverging from all this mess of GNU vs CC....

Love it xD Great script although I personally may not need it. If I do well then, it's in the database.

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #7 on: August 21, 2008, 05:47:01 PM »
Ah yes, I am most sorry. I just couldn't resist this change to tease Blizzy.

I am glad you like the script ^^

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #8 on: August 21, 2008, 05:47:43 PM »
When I make the homepage and a couple of other connected pages, there will be one page which features links to all database topics, ordered by poster. :)
Well, if people care to use the "Type" in the script title all the time, I can actually parse the post for that and order it by type. :D

And I <3 you, Zeriab. <3
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Shadonking

  • Astral Trancist
  • *****
  • Posts: 756
  • LV: 16
  • Gender: Male
  • Your Worse Nghtmare
    • View Profile
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #9 on: August 21, 2008, 06:10:17 PM »
i cant get it to work.

at the start of the game it must load from the data file but the other maps can be put in disk 1 is that right. if yes that i know what my problem is
« Last Edit: August 21, 2008, 06:20:51 PM by shadonking »





Creator Of Music And Games
(click to show/hide)
(click to show/hide)

come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #10 on: August 21, 2008, 07:23:24 PM »
"Disc 0" is the first disc if I am not wrong.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #11 on: August 21, 2008, 07:58:13 PM »
Disc 0 is indeed the first script. Disc 0 is the maps in the data folder, i.e. the maps you can see in the main project ;)

@Blizzy: I <3 you too :3
Don't depend on the "Type" though. You can be sure it won't work out well -_-

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #12 on: August 21, 2008, 08:02:53 PM »
I know. I use custom types for my scripts. I could include something in the template called "Script Type" or "Common Type" or "Search Type" or "Log Type" or "Keyword Type" or "Key Term" while there are not so many scripts in the database yet. Parsing the beginning of the post for that line should be no problem then if I give a strict list of possible types. :)
« Last Edit: August 21, 2008, 08:04:03 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Shadonking

  • Astral Trancist
  • *****
  • Posts: 756
  • LV: 16
  • Gender: Male
  • Your Worse Nghtmare
    • View Profile
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #13 on: August 21, 2008, 11:48:48 PM »
ok i get that now but it still deosnt work, when i put in the script command to change disks is says data/disk1/map001.rxdata not found.

whats the prob then, sorry for bieng a pain





Creator Of Music And Games
(click to show/hide)
(click to show/hide)

come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #14 on: August 21, 2008, 11:54:04 PM »
You have to put the maps from another disc into the disk1 folder in the Data folder.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #15 on: August 22, 2008, 01:35:34 PM »
ok i get that now but it still deosnt work, when i put in the script command to change disks is says data/disk1/map001.rxdata not found.

whats the prob then, sorry for bieng a pain
The reason it doesn't work is that the folder is named disk1, it should be named disc1.
A silly little error of the type that can be very hard to spot ^_^

@Blizz: Yeah perhaps you are right, but you should nevertheless still consider the maintenance cost

Offline Shadonking

  • Astral Trancist
  • *****
  • Posts: 756
  • LV: 16
  • Gender: Male
  • Your Worse Nghtmare
    • View Profile
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #16 on: August 22, 2008, 01:55:22 PM »
ok thanks,

its working fine now.

yay, now i can make a really big game.





Creator Of Music And Games
(click to show/hide)
(click to show/hide)

come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #17 on: August 22, 2008, 02:26:47 PM »
@Blizz: Yeah perhaps you are right, but you should nevertheless still consider the maintenance cost

Me and SRK (with some help of Aqua) edited the topics in XP and VX databases yesterday already. :D Now all I need is to make a php script that accesses the MySQL database, gets the right data out, orders the links appropriately and categorizes according to the key term. :D
I tell you, after this everybody will start copying my idea. xD
« Last Edit: August 22, 2008, 02:28:50 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Zeriab

  • Ethereal Devastator
  • ****
  • Posts: 350
  • LV: 65
  • Mighty Scripter
    • View Profile
    • Zeriab's Junk
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #18 on: August 22, 2008, 02:44:07 PM »
I am glad it worked out fine ^^
Sounds like you are making a big game >_>
I hope it goes well

@Blizzy: Oh that's awesome :3

Offline Shadonking

  • Astral Trancist
  • *****
  • Posts: 756
  • LV: 16
  • Gender: Male
  • Your Worse Nghtmare
    • View Profile
Re: [XP] Disc Changer - If you need more than 999 maps
« Reply #19 on: August 22, 2008, 03:35:38 PM »
yeh its going to be big becuase its going to be zelda map wise so its good not having a limit.

down side is its going to take ages to make lol





Creator Of Music And Games
(click to show/hide)
(click to show/hide)

come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0