The Guardian Legend

Sequel of The Game => Work => Topic started by: Anegorami on July 22, 2012, 08:33:19 PM

Title: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on July 22, 2012, 08:33:19 PM
(http://theguardianlegend.com/pics/maps-plugin.png)

Features:
Save system.
Dynamic map (for any TGL rom).

Requirements:
FCEUX 2.2.3

Download:
https://mega.nz/#F!QtZQBK4Y!fmg_r54_wpoUtDCIFAxFPg

Instructions:
Download and unpack archive to FCEUX root directory.
Run FCEUX, load The Guardian Legend.
Select "Lua => New lua script window..." from the "File" submenu.
Once "Lua Script" window shows itself, press "Browse..." button and select "TGL/main.lua".
Press "Run" button.
If everything went fine, you should see "TGL Map" window.

From now on, I will check this forum daily. If you found a bug, you can leave a post here or use official Discord channel (https://discord.gg/93C68CT).

Changelog:
R1 ~Repository relocation~ (2018.06.28)
R12 (2018.06.01)
R10 & R11 (2018.05.30)
R9 (2018.05.29)
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on July 22, 2012, 09:20:14 PM
Update - DMM for Area 8 now available.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: arseniy on July 22, 2012, 11:10:28 PM
unpack them to the script's directory
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on July 23, 2012, 12:56:01 AM
unpack them to the script's directory
Fixed.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on July 23, 2012, 01:28:11 AM
Update - DMM for Area 9 now available.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on July 23, 2012, 06:14:30 AM
Update - DMM for Area 10 now available.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Bchulo on July 31, 2012, 01:23:12 AM
OMG that's soo cool. too bad i didnt have this before i memorized the whole map by heart, but still i replay this game constantly so i will definitly be getting good use out of this.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: RubyC42 on October 09, 2012, 07:33:33 AM
too bad though this only works with the original TGL, not TGL: Secret (the script still works, but the map shows the original's, so using it on the remake make it look totally weird, but still better than iPhone 5 maps  :redlander:)
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: arseniy on October 09, 2012, 09:32:52 AM
too bad though this only works with the original TGL, not TGL: Secret (the script still works, but the map shows the original's, so using it on the remake make it look totally weird, but still better than iPhone 5 maps  :redlander:)

Yes, the map set there manually if you check files. So theoretically it is possible to rebuild the map for Optomon's TGL 3.0.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on October 09, 2012, 10:40:16 PM
too bad though this only works with the original TGL, not TGL: Secret (the script still works, but the map shows the original's, so using it on the remake make it look totally weird, but still better than iPhone 5 maps  :redlander:)
Yes, the map set there manually if you check files. So theoretically it is possible to rebuild the map for Optomon's TGL 3.0.
Update: v2.0 beta.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on October 11, 2012, 09:33:54 PM
Update - DMM for Area 0 of "TGL-Secret" now available.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: AlastorSX on October 25, 2012, 01:25:30 AM
So, I am noob sauce when it comes to this kinda stuff... How exactly do I incorporate this into my rom? Do I use Winrar and unpack it? And if so, where do I go from there?
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on October 25, 2012, 05:10:48 AM
So, I am noob sauce when it comes to this kinda stuff... How exactly do I incorporate this into my rom? Do I use Winrar and unpack it? And if so, where do I go from there?
First you must download FCEUX 2.1.5: http://www.fceux.com/web/download.html
Next download script and libs and unpack them somewhere (for example ./lua/TGL MaPs).
Then run FCEUX and load TGL ROM.
Select "File->Lua->New Lua Script Window".
In new window ("Lua Script") press "Browse..." and select "TGL MaPs.lua". Press "Run".
If you done everything right, you must see something like this:
(https://dl.dropbox.com/u/79803223/Forum/TGL/mm.jpg)
To save your game find password room, press [A] to bring password on screen and press "Save".
To load your game select "Password continue" from main menu and press "Load". Select save file. Then return to the game and press "END".
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: AlastorSX on October 25, 2012, 07:32:58 PM
Sweet! I will give it a whirl when I can.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on October 31, 2012, 12:47:01 PM
Update - added music replacer based on headfonez's code. For now it works, but there is still a lot of bugs. I'll update this module of my script asap.
If you update script from older version - redownload and replace libs.

To turn MR on:
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Quoise Games on October 31, 2012, 08:15:30 PM
that was fast.

I've updated the sound pack at: http://www.mlpmedia.net/TGL/soundUpdate1.zip (http://www.mlpmedia.net/TGL/soundUpdate1.zip)


There shouldn't be any crashes now since all of the sound.ogg files are present

good job merging my MR code.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on October 31, 2012, 11:06:34 PM
I've updated the sound pack at: http://www.mlpmedia.net/TGL/soundUpdate1.zip (http://www.mlpmedia.net/TGL/soundUpdate1.zip)
I get strange error when i try to download this file.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Golbez on October 31, 2012, 11:30:30 PM
I was able to download it, but it was 0kb and the zip contained no files.

Also, hopefully it'll address this crash which occurred after I beat the first mini boss.

But seriously, I got the map thing working right, and together with the new sounds and mod, and this is a completely transformed game. It's freaking awesome! Thanks everyone, for all your efforts!
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on November 01, 2012, 01:48:52 AM
Update - crash on "File not found" error now solved. To play "corridor win theme" correctly redownload music pack.
Also added automatic game reload.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Golbez on November 01, 2012, 11:17:05 AM
Hmm.  I redownloaded sound.zip and installed them (I noticed it only added 1 new file), but I still get the same exact crash at the same exact spot, after defeating the first polypus.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Quoise Games on November 01, 2012, 12:03:06 PM
Basically just make sure there is a 1 through 71 sound.ogg.  if there isnt, place a silence file there instead, and the problem should be fixed.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Golbez on November 01, 2012, 06:59:19 PM
Yeah, there's only 64 out of 71. You're missing: 12, 18, 21, 26, 31, 68, 69.

So for a silence file, rather than creating "New file" and changing a text document to, for example, "sound12.ogg," could I make duplicates of sound61.ogg (filesize 5kb) and rename that to 12, 18, etc? I suspect a generic "New file" may not work as well as one that is a legitimate file type.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Golbez on November 01, 2012, 07:10:20 PM
I'm sad to report I tried exactly that and it still crashed the game at exactly the same spot. Though the same error was not produced, and I hastily closed it without capturing the screen shot. However, I feel like it was the normal Windows 7 generic program crash. "Stopped responding."

Edit - Yup. Tried again. Went to the other mini boss just for variety and to see if it wasn't something specifically tied to that first boss. Here's the message:

Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Quoise Games on November 01, 2012, 07:35:57 PM
I'm sad to report I tried exactly that and it still crashed the game at exactly the same spot. Though the same error was not produced, and I hastily closed it without capturing the screen shot. However, I feel like it was the normal Windows 7 generic program crash. "Stopped responding."

Edit - Yup. Tried again. Went to the other mini boss just for variety and to see if it wasn't something specifically tied to that first boss. Here's the message:
Sorry to hear.  It's working for me when having a ogg for every sound.  Double check and make sure all of the sounds have ogg files.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Golbez on November 01, 2012, 08:31:10 PM
Attached is the list of all the songs in winamp, including the 7 I created off of file 61.

However files 12, 18, 21, 26, 31-34, 37, 38, 54, 56, 61, 62, 64, 65, 68, 69 play nothing in winamp.

Yet files 33-34, 37-38, 54, 56, 64-65 are larger than 5kb (what I assume is the typical empty file).

That leaves files 12, 18, 21, 26, 31, 32, 61, 62, 68, and 69 as the 5 kb files, which makes sense because I created 12, 18, 21, 26, 31, 68, 69 off of 61. So that leaves 32 and 62 as the 5k's before I did anything to 'em, which are probably not the ones to copy.

So, round 2, revamped strategy. Delete "Clone 61" files 12, 18, 21, 26, 31, 32, 61, 62, 68, and 69, and replace with clone file 33-4, etc (any one ought to do, hopefully).

I'll let you know if I find a "blank" file that works.

Edit - SUCCESS! I modified all the red files with Clone33 and I got past the boss. I'd recommend doing the same and rehosting. Or I could host my zip in its place. That is, if anyone else is experiencing the crash.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on November 01, 2012, 09:46:30 PM
Attached is the list of all the songs in winamp, including the 7 I created off of file 61.

However files 12, 18, 21, 26, 31-34, 37, 38, 54, 56, 61, 62, 64, 65, 68, 69 play nothing in winamp.

Yet files 33-34, 37-38, 54, 56, 64-65 are larger than 5kb (what I assume is the typical empty file).

That leaves files 12, 18, 21, 26, 31, 32, 61, 62, 68, and 69 as the 5 kb files, which makes sense because I created 12, 18, 21, 26, 31, 68, 69 off of 61. So that leaves 32 and 62 as the 5k's before I did anything to 'em, which are probably not the ones to copy.

So, round 2, revamped strategy. Delete "Clone 61" files 12, 18, 21, 26, 31, 32, 61, 62, 68, and 69, and replace with clone file 33-4, etc (any one ought to do, hopefully).

I'll let you know if I find a "blank" file that works.

Edit - SUCCESS! I modified all the red files with Clone33 and I got past the boss. I'd recommend doing the same and rehosting. Or I could host my zip in its place. That is, if anyone else is experiencing the crash.
Hmm... Seems like you just ignored last script update. If you redownloaded only music pack - update your copy of the script.

P.S.: I think we must create full list of TGL music/sounds and try to make original sound pack. It will help in testing.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on November 02, 2012, 12:52:57 AM
Another script update - some bugs were fixed.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Golbez on November 02, 2012, 08:45:03 PM
Yeah, I didn't realize the script was updated. I thought it was just the sound pack. *oops*

I went ahead and opened one of the main stage themes in Audacity and truncated the start and end so that it loops better. I think it was a Minibosses cover. I'm attaching that, if you'd like to update your sound20.ogg file.

http://www.mediafire.com/?bdo1kczrhrzg511
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on November 02, 2012, 11:17:33 PM
Yeah, I didn't realize the script was updated. I thought it was just the sound pack. *oops*

I went ahead and opened one of the main stage themes in Audacity and truncated the start and end so that it loops better. I think it was a Minibosses cover. I'm attaching that, if you'd like to update your sound20.ogg file.

http://www.mediafire.com/?bdo1kczrhrzg511
sound20.ogg updated.

I find out that some sound codes don't actually play music/sound, but instead activate some effects:
31 - simply stop any music playback.
69 - make music fade out (boss effect).
Both of them now supported, so sound31.ogg and sound69.ogg are not used anymore.
Title: Re: The Guardian Legend - Map and Passwords (MaPs)
Post by: Anegorami on May 31, 2018, 12:17:47 AM
"Been a while."

Due to some nasty (really nasty) RL events, I was in a horrible "social death" state for quite some time. Now I'm back. Probably. :bluelanderbig:

Anyway, previous version of the script was lost forever, so I write a brand new one. This version still lacks some features of the original, but already (much) more stable and cleaner. For example, map update delay is now gone. Completely. Also, this version works with any TGL ROM by default (still testing this part).

Well, this is it. If you found any bug, you can leave post here. Or there: http://theguardianlegend.com/forum/index.php/topic,1808.0.html. Or use Discord channel. Seriously, use Discord, my response time there much lower.