[Development] Self Design / Original Design

Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Deny everything. Tsukasa is offline
    MemberRank
    Jun 2005 Join Date
    Net SlumLocation
    558Posts

    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";
    
      //start building content
      if($cycle == 1) { $output = '<?xml version="1.0" encoding="UTF-8" ?>'.$new_line; }
      $output .= tabify($cycle - 1).'<'.$wrapper.'>'.$new_line;
      foreach($arr as $key => $val)
      {
        if(!is_array($val))
        {
          $output .= tabify($cycle).'<'.htmlspecialchars($key).'>'.$val.'</'.htmlspecialchars($key).'>'.$new_line;
        }
        else
        {
          $output .= print_r_xml($val,$key,$cycle + 1).$new_line;
        }
      }
      $output .= tabify($cycle - 1).'</'.$wrapper.'>';
    
      //return the value
      return $output;
    }
    
    /* tabify */
    function tabify($num_tabs)
    {
      $return = "";
      for($x = 1; $x <= $num_tabs; $x++) { $return .= "\t"; }
      return $return;
    }
    ?>
    Last edited by Tsukasa; 26-02-11 at 09:49 AM.

  2. #17
    Creator of Code chreadie is offline
    MemberRank
    Mar 2006 Join Date
    SwedenLocation
    603Posts

    Re: [Development] Self Design / Original Design

    ok thanks, ill try it out more tonight

  3. #18
    Creator of Code chreadie is offline
    MemberRank
    Mar 2006 Join Date
    SwedenLocation
    603Posts

    Re: [Development] Self Design / Original Design

    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

  4. #19
    Deny everything. Tsukasa is offline
    MemberRank
    Jun 2005 Join Date
    Net SlumLocation
    558Posts

    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 .

    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.
    Last edited by Tsukasa; 02-03-11 at 10:18 PM.

  5. #20
    Enthusiast niffalose is offline
    MemberRank
    Sep 2008 Join Date
    43Posts

    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

  6. #21
    Novice maxmu is offline
    MemberRank
    Jul 2010 Join Date
    1Posts

    Re: [Development] Self Design / Original Design

    show error CODE1 : and 2

  7. #22
    French Dev jtb1 is offline
    MemberRank
    Apr 2010 Join Date
    France/GermanyLocation
    276Posts

    Re: [Development] Self Design / Original Design

    try to make your own code and correct your db --'



Page 2 of 2 FirstFirst 12

Advertisement