Zeruell / ppx-raidplaner

Automatically exported from code.google.com/p/ppx-raidplaner
0 stars 0 forks source link

Character details semi-disappear #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a profile with one or more users
2. Participate in an raid

What is the expected output? What do you see instead?

During and after the raid, all characters (not only the one you selected for 
the raid) in the profile section seem to be deleted, but when you apply to 
another raid in the calender, the combobox still shows all of your charaters.

What version of the product are you using? On what operating system?
0.96

Please provide any additional information below.
Only modified the gameconf to let the Raidplaner work with GW2 (which by the 
way has 0 different roles, what's not doable, but that's for another ticket ;-) 
)

Original issue reported on code.google.com by arn...@gmail.com on 17 Oct 2012 at 9:47

GoogleCodeExporter commented 9 years ago
I'll have a look into that this weekend. Some questions until I get the chance 
to have a closer look:

- When you say "deleted" you mean they just don't appear in your profile 
anymore?
- Does this problem persist after you log out and back in?

As for the 0 roles - erm - I didn't think of that yet :).
But sounds reasonable for me when having a game where role differences are 
negligible.
I'll put that on the list for 0.9.7 (with both eyes closed that's kind of a 
"bug" and not a feature ;).

Original comment by arne.cl...@gmail.com on 19 Oct 2012 at 8:04

GoogleCodeExporter commented 9 years ago
Yes, in the profile it looks like I never added a character, only the "add 
character" slot is visible.
And logging out and back in didn't help.
As an admin I can look at all other user's chars and it looks like all users 
that participated in the raid, "lost" all the characters.

Thanks for your quick relpy. I hope you keep the project up and runnig, I like 
it a lot! :-)

Original comment by arn...@gmail.com on 19 Oct 2012 at 9:03

GoogleCodeExporter commented 9 years ago
Hm, I just gave IE9 a try an now I get an error message when selecting 
"profile". Firefox 16.1 just opened that page without displaying any errors.

Error: Invalid XML: 2arnephpbb31Sereena Sanchezthieftrue002Shiva 
Sanchezwarriorfalse0020020<>2

Original comment by arn...@gmail.com on 19 Oct 2012 at 9:12

GoogleCodeExporter commented 9 years ago
Ok - I tried to reproduce it (with a clean, unmodified install).

- Created a raid
- Attended with 2 different users
- Promoted 1 user
- Waited until the raid started
- Viewed the profiles of both players 
-> everything displays correctly.

Did you do anything else?
I would also be interested in your gameconfig.php and the XML request result of 
the broken profile.
This XML can be obtained easily via Chrome (Firebug works too, similar steps):

- Open the raidplaner calender view (or any other view that is not profile)
- Press Ctrl+Shift+I (or Cmd+Alt+I on Mac)
- Go to "Network"
- Choose "XHR" at the bottom
- Open the profile showing no characters
- Click on the last entry of "messagehub.php"
- Select "response"
- Copy the contents to a file 

I'm always happy to see that people are using the raidplaner and actually like 
it :)
And yes, I'm not planning to abandon the project anywhere soon. My response 
times (in terms of code changes) just tend to be a bit .. slow *cough* as my 
free time for coding is largely limited to weekends or holidays.

Original comment by arne.cl...@gmail.com on 19 Oct 2012 at 11:34

GoogleCodeExporter commented 9 years ago
Oh, that means my modifications have caused the error. Tried some things now, 
but with no result. So here are gameconfig and the xml-output (thanks for 
howto!).

Problem seems to be the nameless tag in the third-last line of the 
xml-response. I thought maybe the circumstance that I'm using just one role may 
have caused it and reentered the three roles I had on my test system ("heavy", 
"normal" and "medium" armor, to at least have some roles, but removed it before 
installing it on the live system, leaving "heavy" as the only role). But that 
didn't change a thing.

I also noticed, that line 54 of gameconfig ("5  => Array(5,0,0),") should in my 
case be "Array(5)", but if the array has a dimension of less than 3, the page 
freezes with "loading data".

I hope this helps. :-)

Original comment by arn...@gmail.com on 19 Oct 2012 at 4:11

Attachments:

GoogleCodeExporter commented 9 years ago
Ok - I've found one possible cause:

- You created a character while the gameconfig.php contained 3 roles and chose 
e.g. role 3
- You reduced the number of roles to 1, which does not change anything in the 
database (leaving the role id as is)
- The profile script tries to resolve the name for id 2, resulting in an empty 
string
The database however is still intact (that's the good news).

The problem when only using one role is actually a syntax problem in one of the 
scripts as "new array(5)" creates an array of 5 elements, while new array(1,2) 
creates an array with 2 elements: 1 and 2 .
I fixed this one, too.

I attached a hotfix which should help you.
I'll leave this bug open, as I still have to come up with a solution for 
changing the gameconfig on an already existing database.

Original comment by arne.cl...@gmail.com on 19 Oct 2012 at 8:16

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, it worked! Damn, I was pretty sure, I had the three roles only on my 
testing system, not on the live system! I'm getting old! :-(

But thank you very much! Perfect support! ;-)

Original comment by arn...@gmail.com on 19 Oct 2012 at 8:32

GoogleCodeExporter commented 9 years ago

Original comment by arne.cl...@gmail.com on 1 Jan 2013 at 3:11