Different Problem

A shopping addon for Roster

Moderator: Hannah

Re: Different Problem

Postby Hannah » Wed Jul 26, 2006 12:57 am

gprovostjr wrote:I checkind it again and this is what is going on, as soon as I leave the game the sopping.lua looks like this

Code: Select all
},
   [7] = {
      [1] = "Deman",
      [2] = "3",
      [3] = "Flask of Distilled Wisdom",
      [4] = "Dun",
      [5] = "7",
      [6] = "send",
      [7] = "0",
      [8] = "",
   },
   [8] = {
      [1] = "Zbestmage",
      [2] = "10",
      [3] = "Major Mana Potion",
      [4] = "Dun",
      [5] = "8",
      [6] = "deleted",
      [7] = "0",
      [8] = "",
   },
   [9] = {
      [1] = "Briarrose",
      [2] = "10",
      [3] = "Greater Shadow Protection Potion",
      [4] = "Dun",
      [5] = "9",
      [6] = "deleted",
      [7] = "0",
      [8] = "",
   },
   [10] = {
      [1] = "Zbestmage",
      [2] = "3",
      [3] = "Flask of the Titans",
      [4] = "Dun",
      [5] = "10",
      [6] = "deleted",
      [7] = "0",
      [8] = "",


and then uniuploader uploads everything as before, but i dont think this is being processed as it the downloads the shopping.lua again and it has the send and deleted changed back to outbox


This shopping fiel is complete ?

There is missing the shoppinglist... part...

Or did you just give a code snippet ?
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Different Problem

Postby gprovostjr » Wed Jul 26, 2006 1:21 am

I gave a code snippet, here is what it is now, after I deleted them manually,

Code: Select all
shoppinglist = {
   [1] = {
      [1] = "Magum",
      [2] = "1",
      [3] = "Small Leather Ammo Pouch",
      [4] = "Dun",
      [5] = "15",
      [6] = "send",
      [7] = "0",
      [8] = "",
   },
}
shoppinglist = {
   [1] = {
      [1] = "Magum",
      [2] = "1",
      [3] = "Small Leather Ammo Pouch",
      [4] = "Dun",
      [5] = "15",
      [6] = "outbox",
      [7] = "0",
      [8] = "",
   },
}
shoppinglist = {
   [1] = {
      [1] = "Magum",
      [2] = "1",
      [3] = "Small Leather Ammo Pouch",
      [4] = "Dun",
      [5] = "15",
      [6] = "outbox",
      [7] = "0",
      [8] = "",
   },
}
gprovostjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Fri Jul 07, 2006 12:32 am

Different Problem

Postby Hannah » Wed Jul 26, 2006 2:13 am

Hm i can´t believe that ;)

Can you send me your settings.ini from Uniuploader (delete things like account....)

I can´t replicate the thing, it´s hard for me to locate..
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Different Problem

Postby gprovostjr » Wed Jul 26, 2006 1:49 pm

Settings.ini

Code: Select all
# UniUploader initialization file
# generated by
# Version : 2.4.1

[advanced]
AUTOLAUNCHWOW=False
CHECKEDSVLIST=SavedVariables|CharacterProfiler|Enchantrix|CT_RaidTracker|Shopping
DELAYSECONDS=15
DELAYUPLOAD=True
DOWNLOADAFTERUPLOAD=True
DOWNLOADBEFOREUPLOAD=False
DOWNLOADBEFOREWOWL=True
EXE1=False
EXE1LOCATION=
EXE2=False
EXE2LOCATION=
EXE3=False
EXE3LOCATION=
EXEUULAUNCH=False
EXEWOWLAUNCH=False
GZIP=True
RETRDATAFROMSITE=True
RETRDATAURL=http://www.redeemedsouls.com/roster/addon.php?roster_addon_name=shopping
SENDPWSECURE=False
STARTMINI=True
STARTWITHWINDOWS=True
USELAUNCHER=False
WEBWOWSVFILE=Shopping.lua

[options]
ADDURL1=http://www.redeemedsouls.com/roster/admin/update.php
ADDURL1CH=True
ADDURL2=http://www.redeemedsouls.com/roster/admin/update.php
ADDURL2CH=False
ADDURL3=http://www.redeemedsouls.com/roster/addon.php?roster_addon_name=shopping
ADDURL3CH=True
ADDURL4=http://wherever4.com
ADDURL4CH=False
ADDVAR1CH=True
ADDVAR2CH=True
ADDVAR3CH=False
ADDVAR4CH=False
ADDVARNAME1=username
ADDVARNAME2=password
ADDVARNAME3=password
ADDVARNAME4=arg4
ADDVARVAL1=Dun
ADDVARVAL2=xxxxxxxxxx
ADDVARVAL3=xxxxxxxxxx
ADDVARVAL4=value4
ALWAYSONTOP=False
AUTOUPLOADONFILECHANGES=True
SYSTRAY=True
USERAGENT=UniUploader 2.0 (UU 2.4.0; English)

[settings]
AUTODETECTWOW=True
EXELOC=C:\Program Files\World of Warcraft
FILELOCATION=C:\Program Files\World of Warcraft\WTF\Account\xxxxxxxxxxxx\SavedVariables.lua
LANGUAGE=English
OPENGL=False
PRIMARYURL=http://data.rpgoutfitter.com/wowparser.cgi
PROGRAMMODE=Advanced
SELECTEDACCT=xxxxxxxxxx
WINDOWMODE=False

[updater]
ADDONAUTOUPDATE=False
SYNCHROURL=http://data.rpgoutfitter.com/wowparser.cgi
UUSETTINGSUPDATER=False
UUUPDATERCHECK=True
gprovostjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Fri Jul 07, 2006 12:32 am

Re: Different Problem

Postby gprovostjr » Wed Jul 26, 2006 2:31 pm

I tried it unchecking the Gzip compression, and got this response from the server.

Code: Select all
<!-- ############ Uploading to Additional URL # 3...
     ############ http://www.redeemedsouls.com/roster/addon.php?roster_addon_name=shopping -->

UPDATE roster_addon_shopping SET order_state ='outbox' WHERE order_number ='15';

Test:outbox
1
gprovostjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Fri Jul 07, 2006 12:32 am

Re: Different Problem

Postby Hannah » Wed Jul 26, 2006 6:38 pm

That´s it, didi you look into the Db after that, how´s your shopping.lua
looking like after "refresh" from roster...?
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Different Problem

Postby gprovostjr » Thu Jul 27, 2006 2:25 pm

it looks like this now, is it supposed to keep that sent entry?


Code: Select all
shoppinglist = {
   [1] = {
      [1] = "Magum",
      [2] = "1",
      [3] = "Small Leather Ammo Pouch",
      [4] = "Dun",
      [5] = "15",
      [6] = "send",
      [7] = "0",
      [8] = "",
   },
}
shoppinglist = {
   
}
shoppinglist = {
   
}
gprovostjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Fri Jul 07, 2006 12:32 am

Different Problem

Postby Hannah » Thu Jul 27, 2006 2:34 pm

gprovostjr wrote:it looks like this now, is it supposed to keep that sent entry?


Code: Select all
shoppinglist = {
   [1] = {
      [1] = "Magum",
      [2] = "1",
      [3] = "Small Leather Ammo Pouch",
      [4] = "Dun",
      [5] = "15",
      [6] = "send",
      [7] = "0",
      [8] = "",
   },
}
shoppinglist = {
   
}
shoppinglist = {
   
}
Yes, next time you quit wow it will only have an empty shoppinglist entry in it...

WoW takes the last entry in a lua file, anything before it will be ignored...
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Different Problem

Postby gprovostjr » Fri Jul 28, 2006 2:43 pm

OK Thanks for all the time and help on getting this to work.
gprovostjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Fri Jul 07, 2006 12:32 am

Different Problem

Postby Hannah » Fri Jul 28, 2006 9:42 pm

gprovostjr wrote:OK Thanks for all the time and help on getting this to work.
Hope it´s working now but yoou found the problem and i´ll try to fix the gzip option...:)
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Different Problem

Postby Munazz » Tue Aug 01, 2006 12:07 am

On my server, I am using the phpbb.php code to authenticate users. In your upload script, it does not seem to check for this file.

You just have
Code: Select all
if( $roster_conf['authenticated_user'] ) {
... 
parse the file ... }  
but I don't see where you get that value set to? I was putting in print statments to see where my uniUploader was breaking with the shopping list. And it never printed out the statement I put in there even though it should have.

It would be better if you had
Code: Select all
if( $acceptedfile == $file['name'] || $acceptedfile.'.gz' == $file['name'] )
{
   
// Filefield is 1 of the kind we accept.
   
if (!$roster_conf['authenticated_user'])
   {
      
$wow_group $roster_conf['upload_group'];
      include_once( 
ROSTER_BASE.'lib'.DIR_SEP.'phpbb.php' );
   }
   if( 
$roster_conf['authenticated_user'] )
   {
      
$uploadFound true;
      
// Parse the lua file into a php array that we can use
      
$data ParseLuaFile($filename,$filemode);
   }
}
 


I also changed your ParseLuaArray call to the new version is Roster 1.7 which is ParseLuaFile(filename,filemode) which now stores the file as an array in $data. This will read in .gz or .lua files.

But you never seem to do anything with $data?
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

Different Problem

Postby Hannah » Tue Aug 01, 2006 3:48 pm

Hi Munazz!

$data is used in index.php on line 52.

It´s passed to the filetoDB function which updates the DB (line 117)...

Have a look at it...

I don´t habe phpbb so i have to take a look at it and change the code to
the 1.7 version :)

Doesn´t it work for you after change ?

CU Hannah
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Previous

Return to Shopping

Who is online

Users browsing this forum: No registered users and 1 guest

cron