[XP] Blizz-ABS Controller for RMX-OS

Started by Blizzard, January 17, 2010, 05:02:36 pm

Previous topic - Next topic

Blizzard

Oh, I forgot to tell... It requires Blizz-ABS 2.84 which isn't out yet. :=
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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


winkio


Wizered67

January 22, 2011, 06:00:25 pm #223 Last Edit: January 23, 2011, 12:07:21 am by Wizered67
Yay!  :clap: All of my favorite scripts are being updated!

edit: Okay, I have all of the new versions and have flushed my save data, but I keep getting this error on line 663:
undefined method `damage' for nil:NilClass

The line is:
setup_damage_display if !$network.gmaster && @battler.damage != nil

I'd appreciate some help. Thanks.

Blizzard

Quote from: Blizzard on January 22, 2011, 04:41:34 pm
the controller is not fully functional yet and a few functionality problems still remain. I will see if I can find some time in the next few days to test and fix those remaining problems.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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

Guilink

Yeeeeee

My favorite script has been updated.    :haha:

Like you said, I tested the new version and yet still some bugs.

I'm anxious for new updates on this!!!!

Thanks Blizzard!
Waiting for BABS Controller for RMX-OS update! '-'

www.manaextreme.blogspot.com (my brazilian game-newblog)

Noob

Blizzard, about my other problems, I believe this may have fixed them, because when I tested it locally things went fine. However when I tested it globally on vlexofree.com, I got the same error wizered described, the undefined method 'damage' for nil:nilClass. I gave a bigger description in RMX-OS thread because I also got some wierd non-BlizzABS errors that I believe may have been related to it. Anyway, nice job with the updates, I'm looking forward to seeing the fully functional version :)

Blizzard

I updated the script. I will update RMX-OS to v1.17 within the hour so you can use those two together again.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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

Noob

February 03, 2011, 04:40:01 pm #228 Last Edit: February 03, 2011, 05:49:55 pm by Noob
Thanks I'll test it out.
EDIT: found one problem. I described it in the RMX-OS thread.

Wizered67

Almost working perfectly!!!! A problem I found is that it seems like only the global master can battle enemies. Of course, this is testing with 2 clients open on my computer so it could be because of that. I'd appreciate some help.

Noob

Whoa! That explains my problem also! I knew that it only worked once, but it hadn't occured to me that I was playing as the GMaster when that happened, and not as the GMaster all the other times, when it failed. I think this may be my same problem. Please make it possible for other players to also battle the enemies, and for pvp to work. Thanks! :)

Wizered67

One more thing. When I leave and return to a map that had another player on it I get a:
undefined method 'pages' for nil:NilClass

on this line:
for page in @event.pages.reverse 

For me it's line 82 in Game_Event.

I'm not sure, but I think it's happening because characters aren't being disposed.

Noob

Never mind what I said earlier. I think that's how it used to be for me. It used to be that only the GMaster could fight enemies. Now I have it so that no one can fight enemies, not even the GMaster. Please fix this error, and good luck.

Wizered67

It seems that this is so close, yet so far from being perfect. Best of luck fixing all of the errors Blizzard. I appreciate you trying to finish this even though you retired.

Noob

Yea, thanks very much. I would be satisfied if you could just make it possible to fight the enemies and other players, which is the entire purpose of the controller. In my opinoin the other bugs that I've experienced with the controller are a second priority compared to that. Good luck!

Blizzard

I have no problems fighting enemies as GMaster or non-GMaster. :/
Clear out your log files completely. Then run RMX-OS and simulate the problem once. After that shut everything down and upload the log files somewhere so I can take a look at them.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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

Noob

ok i will turn on message logging and wipe the database and try again. i'll probably post the log file withtin a couple hours.

Noob

February 04, 2011, 10:25:37 pm #237 Last Edit: February 04, 2011, 11:17:17 pm by Noob
Where are the log files?? I can't find them. I turned on log messages.....they're nowhere to be found in my client folder :(
EDIT: Sorry for the double post. And I found the log files. But they are not updating. They don't log anything new. It appears they've logged nothing.....only the client log file, the error log, seems to log anything.....
Another EDIT: Earlier I said the log files weren't working. I just remembered that I forgot to update the blizz-abs script for linux. I have to change a couple things when running it on a linux, like filepaths and stuff. So once I change the logging filepaths it should work, so sometime tomorrow morningish I'll post the log files. In the meantime, do you have any other suggestions that I could try for getting blizz-abs to work with rmx-os? it's the very last thing my game needs.....
And one last thing, how exactly does blizz-abs work with rmx-os. Does the GMaster need to "activate" each map the first time they login? Because the first time i login, I always get a wierd thing where the server aborts my connection, so I just try again and it's gone.

Thanks very much for all the help you've given me. I never could have come nearly this far without it.

Blizzard

The server extension of Blizz-ABS does two things. One is that it processes and forwards specific messages between clients that are used in Blizz-ABS (such as enemy data, etc.). The second thing is that it keeps track of the maps where players are playing. If a map is entered where there is no player yet, that player is automatically assigned as GMaster. If there is more than one player on a map and if the current GMaster is not able to respond quickly enough (time is 5 seconds by default, can be changed in the config of the extension), then a new GMaster is assigned. The GMaster takes care of processing Blizz-ABS related data. If somebody who is not a GMaster tries to attack an enemy, the actual data setup that causes an attack is sent to all clients. The GMaster receives that data as well and actually executes the attack. Then the changed enemy data along with the damage data is sent from the GMaster to all clients.

If your enemies stop reacting, that can be only out of two reasons. One is that there is GMaster assigned for the map which is impossible. There is a piece of code that makes sure there is always a GMaster. The other problem could be that the extension crashed. The extension can crash if the Blizz-ABS log file could not be written, keep that in mind. Blizz-ABS actually only logs assigments of GMasters. Basically, if you turned of all logging in all scripts (or change them to absolute paths like the last time), the server might work.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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

Noob

February 05, 2011, 12:43:05 pm #239 Last Edit: February 05, 2011, 05:34:50 pm by Noob
EDIT: Blizzard, I got it to work consistently, but with a rather large problem. The first person to log in after starting the server can successfully battle enemies. But if they access the menu, they get this error:

Sat Feb 05 13:58:51 Central Standard Time 2011:
An established connection was aborted by the software in your host machine.
RMX-OS Script:2267:in `check'
RMX-OS Script:2222:in `recv'
RMX-OS Script:827:in `listen'
RMX-OS Script:3618:in `upd_blizzabs_later'
Blizz-ABS Part 3:6805:in `update'
Scene_Map:25:in `main_rmxos_later'
Scene_Map:19:in `loop'
Scene_Map:30:in `main_rmxos_later'
RMX-OS Script:3606:in `main_blizzabs_later'
Blizz-ABS Part 3:6713:in `main_blizzabsrmxos_later'
blizzabsrmxos:933:in `main'
RMX-OS Main:46
When they, or anyone else logs back in, enemies are unfightbale but remain in the position/HP amount they had when the first person to log in was fighting them. to see if I could get around this, I tried getting two people to log in quickly before the first person got that error. The second person got this error:
Sat Feb 05 13:58:41 Central Standard Time 2011:
undefined method `has_key?' for nil:NilClass
blizzabsrmxos:511:in `update_online_enemy'
blizzabsrmxos:393:in `check_game'
RMX-OS Script:845:in `listen'
RMX-OS Script:844:in `each'
RMX-OS Script:844:in `listen'
RMX-OS Script:5623:in `update'
RMX-OS Script:5255:in `main'
RMX-OS Script:5252:in `loop'
RMX-OS Script:5257:in `main'
RMX-OS Main:46
After that, no one experieced any errors, but the enemies were unfightable to everyone. However, they were in different positions and you could see on their lifebar the damage that the first person to log in had done in the brief time beore getting the error. I believe if you can fix these two errors, you'll have it running perfectly.
Note: For me, the first person to lo in after starting the server always gets that top error.

EDIT: I've found that the erorr I talked about above (the first one) only comes up some of the time. The rest of the time, everything works fine for the GMaster until I use a skill on an enemies (Skills work on players, you see damage, but they don't reduce their HP or affect them). If yo use a skill on an enemy, the script "hangs." I've confirmed Wizered's report that only the GMaster can fight enemies. I went on from two different PCs and only the GMaster was able to fight the enemies. Please fix these problems. In a moment I'll post the error I got when the GMaster used a skill. Also, it's still not writing any logs. And everything works fine when I test it with the server running on my PC.

Agian, another EDIT: Here is the error I get when the GMaster tries using a skill on a blizz-abs enemy (skills seem to work on players but don't actually do anything to them because as I said, only the GMaster can participate in blizzabs battles.)
The error is:
Sat Feb 05 15:51:07 Central Standard Time 2011:
(eval):1:in `check_game'compile error
(eval):1: unterminated string meets end of file
(eval):1: syntax error
{"@direction"=>2, "@real_x"=>9728, "@real_y"=>5760, "@x"=>76, "@battler|@states"=>[], "@ai|@negative"=>[1, 3, 5, 6], "@y"=>45, "@character_name"=>"BlackCat", "@ai|@view_range"=>5, "@ai|@altered_alignment"=>false, "@battler|@enemy_id"=>7, "@ai|@neutral"=>
  • , "@ai|@positive"=>[2], "@move_speed"=>3, "@battler|@sp"=>9999, "@ai|@hearing_range_ratio"=>40, "@battler|@state_time"=>{}, "@battler|@hpPNG
                                                                                                                                                                                                                                                                                                                                                                                                                ^
    blizzabsrmxos:392:in `check_game'
    RMX-OS Script:845:in `eval'
    blizzabsrmxos:392:in `check_game'
    RMX-OS Script:845:in `listen'
    RMX-OS Script:844:in `each'
    RMX-OS Script:844:in `listen'
    RMX-OS Script:3618:in `upd_blizzabs_later'
    Blizz-ABS Part 3:6805:in `update'
    Scene_Map:25:in `main_rmxos_later'
    Scene_Map:19:in `loop'
    Scene_Map:30:in `main_rmxos_later'
    RMX-OS Script:3606:in `main_blizzabs_later'
    Blizz-ABS Part 3:6713:in `main_blizzabsrmxos_later'
    blizzabsrmxos:933:in `main'
    RMX-OS Main:46

    If this has something to do with that anime count thing or whatever that you told me I could delete, just tell me because I haven't deleted it yet. Thanks very much in advance for anything you do to fix this. :) Good luck.