The good thing: If UCC gets rolling, Ghost uploads should be trivial too.
Did you actually manage to force the client to talk to your webserver? At least on my setup I constantly get code 2 responses, indicating that it's still ini3's server answering - despite changing the address.
29-01-11
chreadie
Re: [Development] Self Design / Original Design
USP_CREATE_KEY is called too, from gameserver
29-01-11
suneka
Re: [Development] Self Design / Original Design
Quote:
Originally Posted by Tsukasa
I was planning to look into this as well.
The good thing: If UCC gets rolling, Ghost uploads should be trivial too.
Did you actually manage to force the client to talk to your webserver? At least on my setup I constantly get code 2 responses, indicating that it's still ini3's server answering - despite changing the address.
Yes, I get the answer.
the image is sends, but it is impossible to be edited.
20-02-11
chreadie
Re: [Development] Self Design / Original Design
Quote:
Originally Posted by Tsukasa
I was planning to look into this as well.
The good thing: If UCC gets rolling, Ghost uploads should be trivial too.
Did you actually manage to force the client to talk to your webserver? At least on my setup I constantly get code 2 responses, indicating that it's still ini3's server answering - despite changing the address.
To fix this you need to insert this into TA_SECURITY_TYPE_ACC:
Type: 1
Type_NM: Something
USE_YN: Y
IN_DATE: some date
After that it starts talking to the server specified.
25-02-11
Tsukasa
Re: [Development] Self Design / Original Design
Thanks for the pointer, chreadie.
I'm fully able to save and use designs now, unfortunately it seems I still cannot unequip the item (this might be due to the fact that PART_ACC is still empty and I've overridden the procedure for UCC_LOAD to make it work), temporary saves do not get carried over to different sessions and the UCC-specific icon doesn't show up yet.
If anyone else has been working on those ends, I'd be glad for a few pointers; I don't need the details, just the gist of it.
The backend component is pretty much done (gotta fix some small problems with the verification and reset of security keys). I doubt I'll have to work on it much longer for a first preview, so I'll probably post a test version here as soon as I've fixed the issues mentioned before.
Obligatory screenshot attached.
25-02-11
chreadie
Re: [Development] Self Design / Original Design
whats your response in the webserver?
25-02-11
Tsukasa
Re: [Development] Self Design / Original Design
Could you be more specific? I'm afraid I don't understand what part you currently refer to.
26-02-11
chreadie
Re: [Development] Self Design / Original Design
After uploading the image, what do you give back as response?
26-02-11
Tsukasa
Re: [Development] Self Design / Original Design
I reply with PANGYA_UPLOAD_OK, PANGY_UPLOAD_ERR or ERR_SRVVAR depending on the status.
26-02-11
chreadie
Re: [Development] Self Design / Original Design
thanks
26-02-11
Tsukasa
Re: [Development] Self Design / Original Design
The promised test version (for developers and hack-savvy people only, kinda buggy and not fixed) for those interested.
Edit 2011-03-04: I deleted the links because a growing number of people seems to mistake the linked test version for something production-ready. This is not the case. The code I linked here was provided without any support.
If you have a legit reason for wanting these files, please PM me.
26-02-11
chreadie
Re: [Development] Self Design / Original Design
Do you just print that on the page or send it in the headers?
EDIT: nvm i saw how you did it in your file
Thanks and great work!
26-02-11
Tsukasa
Re: [Development] Self Design / Original Design
I just print it, Pangya doesn't seem to do any magic with headers.
You can give the files I linked to in my previous post a go.
26-02-11
chreadie
Re: [Development] Self Design / Original Design
if i add the output to the script i have, it does what yours does.
But i cant get it to accept that the file has been uploaded, i get the file and its places where it should and echo "PANGYA_UPDATE_OK" and still error 10.
26-02-11
Tsukasa
Re: [Development] Self Design / Original Design
Error 10 is basically the catchall error for "I got some output I don't understand".
Make sure you turn off error_reporting in your script and use a log file to grab PHP messages instead.
You could just build on the foundation of what I've already posted (that's why I posted the stuff here).
*Edit: Here's my ucc_debug.php, it might be useful to find errors in your implementation...
Spoiler:
Code:
<?php
function getDebugData() {
global $_POST, $_GET;
// Make sure we get our share of debug output...
error_reporting(E_ALL);
ini_set('display_errors','Off');
ini_set('error_log','debug_php_msgs.txt');
// Grab and export $_POST
$_debugLogPost = "debug_post.xml";
$_dbgPost = fopen($_debugLogPost, 'w') or die("can't open POST debug log");
fwrite($_dbgPost, print_r_xml($_POST));
fclose($_dbgPost);
// Grab and export $_GET
$_debugLogGet = "debug_get.xml";
$_dbgGet = fopen($_debugLogGet, 'w') or die("can't open GET debug log");
fwrite($_dbgGet, print_r_xml($_GET));
fclose($_dbgGet);
}
/* print the contents of a url */
function print_r_xml($arr,$wrapper = 'data',$cycle = 1)
{
//useful vars
$new_line = "\n";
So i tried this out a bit with your script Tsukasa and i found that in the key check function you have 'N', i had to change this to 'Y' to get any other output then 15 (ERR_SRVVAR).
Havent had time to check other stuff and now ill take some time to actually play :D
02-03-11
Tsukasa
Re: [Development] Self Design / Original Design
Yeah that somehow slipped by... good way to keep people away who want to use this in production though...
Still don't know where temp designs derail and why finalized designs get itchy when you try to unequip them... Have the same problem as you - I'm getting sidetracked by other fun stuff :laugh: .
The UCC_DRAW_COMPLETE procedure is called by both events, UCC paths aren't different. Quite a bugger. Probably makes more sense trying to find out why the custom name and icon in the final image doesn't seem to have any impending/lasting effect.
04-03-11
niffalose
Re: [Development] Self Design / Original Design
i'm try uploaded my picture but when logout and relogin i see white picture and when i click it's show error CODE1 : and 2