KeyWorld

ROChargenPHP - Free PHP Character Viewer

Recommended Posts

Seriously: wtf.

I spent 50 minutes of my life trying to fix bbcodes bugs in my first post, see the result.

Edit: Finally able to have a not bad rendering by using some tricks:

bbcode [-b] to jump line

if use too much [-code], the code switch to inline mode (wth ?)

...

Edited by KeyWorld

Share this post


Link to post
Share on other sites

Excellent work man  /no1

 

Seriously: wtf.
I spent 50 minutes of my life trying to fix bbcodes bugs in my first post, see the result.

I understand your pain....To amend the words of Sheldon Cooper "BBCode thy art a heartless bitch"  /hum

Share this post


Link to post
Share on other sites

awesome let me try this one ^_^

Share this post


Link to post
Share on other sites

You're welcome :)

I forget to talk about three known problems related to PHP GD (it sucks !).

I show you this problems in only one monster : The Bloody Knight !

 1268.png

  • Do you see the fire ? There is a white rectangle around. this problems occurs on RGBA images in Sprite files when you try to merge them with the main image.
  • Check the shield, there is a white border around it. When rotating an image it's possible to have this problem : the image border is merging with the transparent background (which is white) and cause this bug. I replace the transparent background by a transparent white background to avoid getting a magenta border (or other flashy border).
  • Check the shield again, poor quality ! Due to image rotation + image scale.
The problem n°1 just occurred in some monsters (effects), I don't think there is one hat or character using RGBA frames for now in RO.

The problem n°2 and 3 can occurred in all monsters/characters, depend of the scale and rotation.

 

 

To conclude, PHP GD sucks, I have noone of this problems in javascript (<3).

  • Upvote 4

Share this post


Link to post
Share on other sites

Not sure what I'm doing wrong, I can't get the index (or any other subsequent page) to load.

I've edited the data.ini for my GRF, uploaded the grf, and edited index.php with my database details.

 

All I get is a blank white page. :|

Share this post


Link to post
Share on other sites

Not sure what I'm doing wrong, I can't get the index (or any other subsequent page) to load.

I've edited the data.ini for my GRF, uploaded the grf, and edited index.php with my database details.

 

All I get is a blank white page. :|

 

Same.

Share this post


Link to post
Share on other sites

with this tool it helps me to insert the game characters in my site/cp (e.g fluxcp/cerescp). hoping for more updates to come. awesome work!

7F1CaCj.png

  • Upvote 2

Share this post


Link to post
Share on other sites

Not sure what I'm doing wrong, I can't get the index (or any other subsequent page) to load.

I've edited the data.ini for my GRF, uploaded the grf, and edited index.php with my database details.

 

All I get is a blank white page. :|

Same.

To spot the error, change this in index.php:
//ini_set('display_errors', 1);
//error_reporting(E_ALL);

To:

ini_set('display_errors', 1);
error_reporting(E_ALL);

Maybe a problem with writing access on cache directory, try to change:

Cache::$time = 15 * 60 ; // cache for 15 mins (set to 0 if you want to disable cache).

To:

Cache::$time = 15 * 60 * 0 ; // cache for 15 mins (set to 0 if you want to disable cache).

And:

Client::$AutoExtract = true ; // If true, client will save extracted files from GRF into the data folder.

To:

Client::$AutoExtract = false ; // If true, client will save extracted files from GRF into the data folder.
  • Upvote 1

Share this post


Link to post
Share on other sites

It worked but I can't see my character, the image is blank (but it shows the my name and level). I will double check my grf configuration.

 

Edit:

 

Still no success.

Edited by AngelRO

Share this post


Link to post
Share on other sites

I want nginx rewrite rule.

plz.

Share this post


Link to post
Share on other sites

@Gerome
I didn't see your post, sorry.
Thank you, what are the next updates you want to see in this tool ? :)
 


@AngelRO
Yeah, check the DATA.INI name and the GRF name, it's maybe case sensitive.
If you don't see, PM me and we will do some tests to figure out what's your problem.

 


@BBaking
I never use nginx to do rewrite url, but by checking google it should be something like this:

server
{
    # basic configs before...

    # unless the request is for a valid file, send to bootstrap
    if (!-e $request_filename)
    {
        rewrite ^(.*)$ /index.php/$1 last;
    }
 
    # Avoid user to read .htaccess/.htpasswd files
    location ~ /\.ht
    {
        deny all;
    }
}

But I have no idea if it will work.


@All
I'm planning to do a debug mode (or an installation mode) to help configuring it.
If you have some idea for this tool, don't hesitate and share it.

  • Upvote 2

Share this post


Link to post
Share on other sites

Can you post the recommended data (.zip)? I'm having the same problem, the image is blank! /wah

 

Nice work! thanks for has shared  /thx  /thx

Share this post


Link to post
Share on other sites

Why not head appears?

jb3quAr.png

@edit

[Data]
0=sdata.grf
 
File is in the folder
Edited by Elf0

Share this post


Link to post
Share on other sites

For the life of me, I still can't get this to work. >_>

I turned on the error reporting, still getting a blank white page, nothing else happens.

 

I downloaded GRF Editor, created a new GRF saved as 0x200, containing a data folder with '/palette', '/sprite', and '/luafiles514'

My grf is named correctly in the data.ini (all lowercase), name matches what I named my grf.

 

I've also disabled the cache, disabled AutoExtract, etc.

Any suggestions would be appreciated. ;)
 

Edit:

When I go to /signature/Talaysen or /avatar/Talaysen,

I get: Image cannot be displayed because it contains errors

 

Edit:

Alright, I was 'missing' the Cache file, when I uploaded everything, somehow I managed to miss that one.

It loads the images accordingly (IE: /avatar/Talaysen) shows my characters avatar.

 

However, the Index page is still blank/white for me.

 

Also, I placed the contents of the GRF directly in the client folder (the data folder with all it's parts), any reason I shouldn't do that, or does it not matter?

 

On this particular server, I also don't have access to anything outside of the web root (this is one of my shared hosting servers),

is there anything (security/issues) that I should worry about leaving the client folder in the web root?

Edited by Talaysen

Share this post


Link to post
Share on other sites

RlKE2ie.png

Sucess HOHOHO!

 

@Edit

hkRPrbe.png

 

@KeyWorld 

Found no bug, the staff is having trouble installing

 

sorry my bad English

Edited by Elf0
  • Upvote 1

Share this post


Link to post
Share on other sites

@ericklucas
I don't have one sorry, I'm using two old bigs outdated GRFs.
You can use your own GRF without removing files, it will work if properly repack. But it will be faster if you just have the needed files (all files in data/sprite and data/palette), same thing if you're using the data folder, you can upload the whole data or just upload data/sprite and data/palette.
 

@Elf0
Good news :)
 

@Talaysen
There is no security issue, It's just a problem if you have some files you don't want to share in your data. User can guess the location to this file and download it (I will add .htaccess to deny access from user in the next update).


@All and @Talaysen
If you have problem installing the tool, I did an update last night.
Install the latest version, configure it, and once it's done open index.php and uncomment this line :

// Set on the debug
//Debug::enable();

Once it's done all info and errors will be reporting when rendering an image:

 


debug.png

If you still don't get what the error is, just contact me and I will try to figure what's your problem.

  • Upvote 2

Share this post


Link to post
Share on other sites

Problems in sprites 3rd Class ... Sorcerer, Minstrel, Genetic Shadow Chaser.

 

Genetic

	4071 => "Å©¸®¿¡ÀÌÅÍ",            4078 => "Å©¸®¿¡ÀÌÅÍ",            4107 => "Å©¸®¿¡ÀÌÅÍ",           // Genetic

Shadow Chaser
 

	4072 => "½ºÅäÄ¿",  4079 => "½ºÅäÄ¿",  4108 => "½ºÅäÄ¿", // Shadow_Chaser

The other manually added..



@KeyWorld

How to do to display the table of login information? for example 'userid'

Edited by Elf0

Share this post


Link to post
Share on other sites

Can someone confirm the 3rd job filename error ?
I don't have an updated GRF with 3rd job right now and I don't have the same informations by checking the web.

---------------

To display the userid in the signature for example ?


Open controllers/signature, search for:

				login.sex,

So add here what you want to get:

				login.sex, login.userid,

 

Go to the render() method, and add:

$color = imagecolorallocate($output, 255 /*r*/, 0 /*g*/, 0 /*b*/);
imagestring($output, 2, 0 /*x*/, 0 /*y*/, $data['userid'], $color);

Share this post


Link to post
Share on other sites

success. thanks, KeyWorld

성공했습니다. 감사합니다.

 

Hope asks if you support semi-transparent shadows.

희망이 있다면 그림자는 반투명 지원 부탁합니다.

 

Oh, and the front wings and the character will backpack.
Please confirm.

아, 그리고 날개나 배낭은 캐릭터 앞을 가립니다.
확인부탁드립니다.

 

http://ro.myvnc.com/index.php

Edited by BBaking

Share this post


Link to post
Share on other sites

@BBaking

It support it, but not properly because of another problem with PHP GD which, instead of outputting some pixels with an alpha value, it merge them with the background (white transparent background).
I didn't find a proper way to fix it.

You can remove the shadow if you want by editing render/class.CharacterRender.php and commenting this lines:

		if ( $this->action !== self::ACTION_SIT && $this->action !== self::ACTION_DIE )
			$this->renderImage( $img, array(
				"path"  => "data/sprite/shadow",
				"scale" => DB::get_shadow_factor($view['class'])
			));

 

About the robe it should work fine, do you have a problem with it ?

Share this post


Link to post
Share on other sites

ZH6r7II.png


Custom ROChargenPHP In PTBR


  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...