Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - piraatlife4me

#61
Hey Scorpiorus! It's been a while.
It's Dan here, so I understand what you mean but the problem I am still having is if I just click in the list box on the save I want. It just automatically saves over the game and if nothing is in the list box above it just overwrites it without a name. So I just get a gui full of blank saved game files. I need the name of the save game file to appear in the text box when you click on each game in the listbox. I also don't want it to automatically overwrite the game just because the player clicks is there an easy way to do that? I think that would solve my problem.

Daniel
Winebarger
#62
Hey guys,
Sorry Meowy to butt in here but now I'm having troubles again!arrgggghh I was wondering if you guys might know of a solution here. I have been reading your problem and mine is kinda similar. My save/gui works ok accept it will only let me save and load only two games at a time. What I mean is in the save list box and the restore list box it only lets me have two games available and if two games are already saved it just overwrites one of them and only displays two. Any thoughts on why this might happen? Here is my source code in the
interface_click function

if (interface==SAVEGAME) {
SetMouseCursor(8);
if (button==2) {// if save is pressed Count saved games
index=ListBoxGetNumItems(7,4); // Count saved games
GetTextBoxText(7,1,text); // Get the typed text
SetCursorMode(0);
 SetMouseCursor(0);
 StopChannel(5);
 SetChannelVolume(5,255);
 PlaySoundEx(70,5);
  game.text_shadow_color = 4;
    InterfaceOff(7); // Close the interface
  SaveGameSlot(index,text); // Save game (text as description)
game.text_shadow_color = 4;
}

else {
index = ListBoxGetSelected(7,4); // Get the selected save game
SetCursorMode(0);
 SetMouseCursor(0);
 StopChannel(5);
 SetChannelVolume(5,255);
 PlaySoundEx(70,5);
  game.text_shadow_color = 4;
  InterfaceOff(7); // Close the interface
  SaveGameSlot(savegameindex[index],text); // Overwrite the selected game
game.text_shadow_color = 4;
}
if (button==3) {
 SetCursorMode(0);
 SetMouseCursor(0);
 StopChannel(5);
 SetChannelVolume(5,255);
 PlaySoundEx(70,5);
  game.text_shadow_color = 4;
InterfaceOff(7);
}
}
if (interface == RESTOREGAME) {
 if (button == 2) {
   index=ListBoxGetSelected(8,0);
   SetCursorMode(0);
SetMouseCursor(0);
game.text_shadow_color = 4;
GUIOff(8);
RestoreGameSlot(savegameindex[index]);

   }
 else if (button == 3) {
   SetCursorMode(0);
 SetMouseCursor(0);
 StopChannel(5);
 SetChannelVolume(5,255);
      PlaySoundEx(70,5);
         game.text_shadow_color = 4;
    GUIOff(8);

   }
 }
I have tried lots of different things here and still end up with some kinda problem. Am I ordering these things wrong?
Daniel
Winebarger
#63
Oh! I see what you mean.
Thanks for the tip. I was just thrown off a little bit by it all. I really appreciate it.

#64
Hey TK,
Yeah that is a good idea. I tried something similar and it fixed the problem I was having. I just added in some room variables in before the script and turned them off when the player leaves the screen and turned them back on in the before fade in script. It works now. Thanks for the help, I appreciate it :)
Daniel
Winebarger
#65
Hey friends!
I am having a weird problem in AGS. When I am in a certain room in my game the game just shuts down and displays a message saying too many overlays created. The thing thing that is odd is that there is only one overlay set in the room. Does anyone know why this may affect other rooms in the game? Is there a way to clear all overlays each time the player leaves the screen? Another thing I noticed is when I create a text overlay and give it a id and put it in the  repeatedly execute script under a istimerexpired command it won't let me remove the overlay when I try to leave the screen. How do I specify an id for a text overlay set under a timer?

Daniel
Winebarger
#66
AGS Games in Production / Re:Silverbow Games
Wed 03/03/2004 17:21:51
Nice custom icons,
everything looks really good!
Post again when you get some sprites finished I am curious to see what they are going to look like.
Good luck!
Daniel
Winebarger
#67
Hey Squinky, looks great! I like the look of the design of the panels on both sides. Is that a clock on the left one? A health meter?
#69
I just downloaded it and it looks pretty cool so far. I like the look of the main character and intro text animation. I will comment more when I get some extra time today to play it.
Daniel
Winebarger
#70
Hey Scorpiorus!
That fixed it, again you saved me! The problem I was having was  forgetting to put in ListBoxSaveGameList(8,0); before opening up the restore gui. It works now!
Thanks buddy, I definitely owe you one!
Daniel
Winebarger

#71
Exactly what I expected it be.
Absolutely fabulous!
I sent you a pm.
Daniel
Winebarger
#72
Scorpious saves the day....again!
Thanks! I swear you're a genius, that was my problem the whole time.
Thanks buddy!
Daniel
Winebarger
#73
Hey Darth!
I would be more than happy to give your game a test run.  
Just Pm me with the link!
Daniel
Winebarger
#74
Hey ags forums!
I am in need of a little help! I am having a little trouble getting my custome restore gui to work. I was wondering if any one could look at my script and see if they see anything with this that might be the cause of it not working? I have tried everything I can think of but I am still comming up short of a solution here.This is what I have in my global script:

if (interface==SAVEGAME) {
SetMouseCursor(8);
if (button==2) {
 // if save is pressed
// Count saved games
index=ListBoxGetNumItems(7,4); // Count saved games
if (index<20) {
GetTextBoxText(7,1,text); // Get the typed text
InterfaceOff(7); // Close interface
SaveGameSlot(index+1,text); } // Save game (text as description)
else { // if saved games are 20
index=ListBoxGetSelected(7,4); // Get the selected save game
GetTextBoxText(7,1,text); // Get the typed text
InterfaceOff(7); // Close the interface
SaveGameSlot(savegameindex
[index],text); } // Overwrite the selected game
}
if (button==3)
SetDefaultCursor();
InterfaceOff(7);
game.text_shadow_color = 4;

}

For my restore gui I have this:

if (interface == RESTOREGAME) {
 if (button == 2) {
   index=ListBoxGetSelected(8,0);
RestoreGameSlot(savegameindex[index]);
 SetCursorMode(0);
GUIOff(8);
   game.text_shadow_color = 4;
   }
 else if (button == 3) {
   SetCursorMode(0);
    GUIOff(8);
   }
 }
Anyone out there see anything wrong with this?
Or know of anything I might be leaving out? I keep getting a error message saying it's unable to load file.
Thanks.
Daniel
Winebarger
#75
Hey I really like your screenshots! The backgrounds have  the whole LS5 look to them. Which I think is cool. I dig the look of  the main character. Good luck!
It all looks great!
Daniel
Winebarger
#76
Hey try this! Under the VISIBLE option in the gui properties window change the unwanted gui's normal setting to off by setting the visible option to pop modlar intead of normal. That should remove it from the screen. Let me know if that helps you at all.
#77
Hey Darth!
So you got around to checking out my game. I am stoked you seem to like it for the most part. It is kinda long for a demo game. It actually is an entire completed game I am just calling it a demo and depending how well it does (If enough people enjoy it I might elaborate on this game. Oh the text that appears on the screen is supposed to be intro credits. They are only supposed to only appear once and only the first time the player enters that room. If it pops up on the scren more than that it is a bug. I will get around to fixing up the walkable areas and walkbehinds when I finalize it all. Thanks for giving it a look. If you get a chance to play it more just let me know if you spot any other bugs. The walkthrough is on the website under the cheats section.

http://razorsinthenight.4t.com/images/spoiler.htm

If you go http://razorsinthenight.4t.com/images/walkthrough.htm
You get the city map, points list and instructions on how to play as well just click on the links.

Thanks again
Daniel
Winebarger

p.s
If you need a tester for The adventures of jp let me know I am in
no problem.
#78
Alright!
You guys rock!
Here is the link

http://razorsinthenight.4t.com/compiled.rar

At : http://razorsinthenight.4t.com
You can also find the full walkthrough, game map, and points possible list

Thanks Darth and Rincewind for signing up I really appreciate it.

Daniel
Winebarger

P.s.
The restore game gui dosent work. I haven't been able to figure out how to fix it yet but everything else should be ok.
Let me know what you think

#79
Hey everyone! Just wanted to let everyone know that the Razors in the night game is done and ready to be tested. Are there any other volunteers out there? Just let me know if you are willing to give it a go.
Thanks again
Daniel
Winebarger
#80
Hey Proskrito! I really appreciate the help. I have everything in my gui set up the way you showed me but the problem is it won't show my restored games for some reason.  I can get the game to save because I am finding saved game files in the compilied folder for my game. For some apparent reason they are not showing up in the list box for the restore game gui.  Do you know of any thing else that I might not be doing right?
SMF spam blocked by CleanTalk