Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

.hack//OHR Script thus far. The problems may lie within

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Wed May 14, 2003 12:18 pm    Post subject: .hack//OHR Script thus far. The problems may lie within Reply with quote

Here is my script:

http://www.angelfire.com/anime4/realmsoft/DotHack.txt

I wouldn't concern yourself with most of it, but the "Login", "Home Page", "Choosing", "Server Stats", and the like are where the problem could be, unless you know a better way to script out the menu.
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Blazes Battles Inc.
I'm a chimp, not a




Joined: 25 Jan 2003
Posts: 505

PostPosted: Wed May 14, 2003 6:40 pm    Post subject: Reply with quote

This is a dilly of a pickle (I should get shot for that). I'm having trouble finding a problem, and when it crashed it somehow caused an error in my game.exe (it now displays only the filename.rpg, no long titles), but I'm sure that will go away when I restart my computer. It should be noted that while it prevents you from accessing the menu with ESC, it is still possible with ALT. I've also encountered a number of bugs that can be caused due to the way the menu is scripted (pressing ESC or ENTER when your icon disappears as it walks downward can cause it to disappear entirely until you try moving in another direction, and moving down at the bottom causes it to the icon to disappear because it has no 'down' frame). You could try scripting it differently (the multiple scripts caused by npcs could be fouling it up, perhaps a keypress in the loop coupled with a suspend player would work better), or someone else could figure out what's wrong. If you would, do you mind posting when the buffer goes up? Turn off debugging on your file, and press F10 on the menu. Watch the bar as the blue part increases, and tell us when. For example, if it goes up slowly no matter what, or if it jumps when you use one of the npc scripts on the menu. I have no idea why the textboxes (like when you log-in) cause the game to freeze. I'm stumped. Neutral
_________________
Preserve OHR history! Do it for the children!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Wed May 14, 2003 8:26 pm    Post subject: Reply with quote

Wait...What's the problem? I need to know before I can help ya.
Back to top
View user's profile Send private message
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Thu May 15, 2003 10:43 am    Post subject: Reply with quote

Oh, Cube! Good to see you! The problem is stated here:

http://www.castleparadox.com/cgi-bin/viewtopic.php?t=306

I'm probably going to have to go with a complete keypress script for the menu, but the reason I tried to avoid that was because every time I tried it, it never worked. I was lucky to get the ESC thingy to work.

I appreciate the help, Blazes, but in all honesty, I'm just as stumped as you are!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Thu May 15, 2003 1:34 pm    Post subject: Reply with quote

Firstly, let me give you the script I use for menu suspention:

Quote:
if (key is pressed (01), or, key is pressed (56)) then (

show text box (1)
wait (1)
advance text box
)


Of course, the box will change for you. Make the box invisible with no text. One thing is is happening in your current script is that the while loop is being called on over and over each time the player hits a key. This will eventually cause a buffer overflow.

And for tweak palette, you need to keep in mind that the palette only goes up to a maximum of 63. Adding 255 will either make it crash, or make it utterly white.

I can't help too much since I don't know where and when these scripts are called precisely. And I still don't really understand the problem after reading that other thread. Can you PLEASE tell me yourself, and the EXACT errors you get, and what it takes to make that error occur?


Last edited by Cube on Thu May 15, 2003 1:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Thu May 15, 2003 1:48 pm    Post subject: Reply with quote

When you're in the Home Page menu, I've had reports that it either wouldn't let you log in, or it would work once and never again, or other dumb things including Buffer Overflow errors.

I myself have tested the game on different platformed comps and found these reports are accurate. But that's about it, Cube!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Blazes Battles Inc.
I'm a chimp, not a




Joined: 25 Jan 2003
Posts: 505

PostPosted: Thu May 15, 2003 1:51 pm    Post subject: Reply with quote

Also, after the buffer overlow error, it either states 'failed to load key-press script' or 'failed to load npc script #' based on what button you pressed.

Still, Setu, would you please post just when the blue bar goes up at the top of the screen after pressing F10 with the debugging keys enabled? That could help (or not) and may explain the problem (or not).
_________________
Preserve OHR history! Do it for the children!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Sat May 17, 2003 9:00 am    Post subject: Reply with quote

Actually, I didn't know about a blue bar in debug mode, but okay! I'll give it a shot and post it when I have it!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Sat May 17, 2003 11:28 am    Post subject: Reply with quote

Gah, nobody listened to what I said!

The reason everything wasn't working was because that while loop was being called on over and over. Eventually the script buffer overflowed.

Now, I simply replaced the entire thing with this:

Quote:
script, Server Controls, begin  #Basically keeps you from hitting ESC

if (Menu == false, and, key is pressed (01), or, key is pressed (56)) then (
show text box (13)
wait for text box
)
end


Note that I turned the menu variable to check if it's false, since it'll be false by default. Thus, in that other script "Login", I made the variable be set to true. It does the same effect, but works better this way. Might I suggest you use a tag though? Because you're just doing true and false...Global Variables shouldn't be wasted on such simple thing Wink.

So, that's that! When I first looked at the script I thought that was the problem, but of course, I didn't know the problem you were searching for. But that was definately the problem, and it's solved now (Tested it with the game you sent me).

So, that's that.
Back to top
View user's profile Send private message
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Mon May 19, 2003 12:32 pm    Post subject: Reply with quote

:> *grabs Cube and gives him a nice looooooong smooch*

ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyou...ThankYOU...ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyou..............................

English Teacher: He never knew when to quit!

*she smacks Setu on the head
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group