Jump to content

ROChargenPHP - Free PHP Character Viewer


KeyWorld

Recommended Posts


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   1
  • Joined:  11/14/11
  • Last Seen:  

Hello keyworld,

 

>Sorry my english is too bad, and i know that you're french. 

 

J'ai un petit souci avec le script, je n'ai rien qui s'affiche.
Alors je me pose des questions: y a t il des droits particuliers sur certains fichiers/dossiers ?
J'ai mis client et data en 777 et tout les php en 755.

 

As tu une idée ?

Merci ;)

 

EDIT:

i've found this in error log:

PHP Warning: parse_ini_file() has been disabled for security reasons in /.../core/class.Client.php on line 41
PHP Warning: Invalid argument supplied for foreach() in /.../core/class.Client.php on line 44

 

EDIT 2: if you have this problem, just delete parse_ini_file from php.ini !

 

EDIT 3: quels sont les droits nécessaires sur quels tables pour l’accès mysql ? Si je lui donne que l’accès 'select' a la base 'char', ca ne fonctionne pas :/

post-320-0-09558600-1391759676_thumb.png

Edited by none
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

Hello ^^

 

Very nice tool, indeed ! Love it and would love to use it for my server / FluxCP, BUT it seems the scripts are not reading my *.lua files and are using internal *.php files to find the ViewID.

Example: accessoryid.lua and accname.lus are replaced by hats.php. This causes bugs like this one for ViewID 1019. In hats.php it is "Cyan_Bandaid", but in my lua's it is "bluevalk_cd".

Trying to find file "data/sprite/악세사리/여/여_Cyan_Bandaid.spr"...
File not found in data folder.
Searching in GRFs...
Loading GRF file "rochargen.grf"...
Search in GRF "rochargen.grf", fail.
Loading GRF file "rdata.grf"...
Search in GRF "rdata.grf", fail.
Loading GRF file "snow_0x200.grf"...
Search in GRF "snow_0x200.grf", fail.
Loading GRF file "paletten_0x200.grf"...
Search in GRF "paletten_0x200.grf", fail.
File not found...

A file "Cyan_Bandaid" .act or .spr does not exist in my GRFs.

My question is now how to tell that script to read *.lua files or how to convert them into hats.php ?

Best Regards

Nets ^^

 

Fixed that problem on my own. Manualy !!!

But still a proper working lua reader would be fine. ^^

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

@KeyWorld

Hello sir i know this is the wrong topic for my request but i want to ask if u can make a new version of : http://www.eathena.ws/board/index.php?showtopic=240082  for rAthena, would be nice :)

 

Btw:

How to add custom items to your ROchargenPHP script ?

Edited by Hirasu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

@Hirasu

I don't think I will do other npc scripts for the community : I am already busy with my projects and to be honest I don't have any fun to write athena scripts now, too limited and not elegant at all :(

 

About ROChargenPHP you can add custom files in db folder, if it's about hats, take a look at db/hats.php.

There is a route + controller you can set on in index.php to update files from your lua files but since it parse lua content wth regex it can generate some errors.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

@KeyWorld

 

Thanks for the information  /lv

 

EDIT:

$routes['/update/(hats|mobs|robes)'] = 'Update'; // Uncomment this line if you want to perform updates by updating lua files.

 

i uncomment this and run the update.php but nothing happens  :o

 

what i do wrong?

 

Can i add custom items manuell?

Edited by Hirasu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

@KeyWorld

 

$routes['/update/(hats|mobs|robes)'] = 'Update'; // Uncomment this line if you want to perform updates by updating lua files.

 

i uncomment this and run the update.php but nothing happens  :o

 

You have to run :

/update/hats or

/update/mobs or

/update/robes

 

And of course you can add items manually :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

Solved.

Edited by Cyrix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

 

@KeyWorld

 

$routes['/update/(hats|mobs|robes)'] = 'Update'; // Uncomment this line if you want to perform updates by updating lua files.

 

i uncomment this and run the update.php but nothing happens  :o

 

You have to run :

/update/hats or

/update/mobs or

/update/robes

 

And of course you can add items manually :P

 

Thanks  /kis

EDIT:

The hats.php list is updated but in the /avatar/CHARNAME i dont see my custom headgear , my custom grf is in the data.ini , what can i do? ( Sorry for my bad english )

Cache delay = 0

 

EDIT2: FIXED my mistake was : 1082 => 'ElemEarth', and the sprite name is elemearth.spr :D ( 1082 => 'elemearth', works )

 

EDIT3:

btw the Fallen Angel Wing Robe does not appear.

 

and i have a request :

 

how to add the ROChargenPHP to the FluxCP like this :

 bbcq.png

 

And how can i display the items icons as in the picture above.

 

Hope* someone can help me, Thanks :)

Edited by Hirasu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

@Hirasu:

 

I solved that by using DIV-BOXES and TABLES in HTML, CSS and a bit PHP.

 

Will upload my test-files to pastebin in some minutes ^^

 

Regards

 

Nets ^^


Here the links to pastebin:

 

Part 1: index.php http://rathena.org/board/pastebin/z1gwqy2l583z/

Part 2: functions.php http://rathena.org/board/pastebin/zvz8k9n82v7/

Part 3: array_prefix.php http://rathena.org/board/pastebin/drmzl3oetc25/

Part 4: array_links.php http://rathena.org/board/pastebin/19odvbv9ocvns/

Part 5: array_jobnames.php http://rathena.org/board/pastebin/tq0fghh1lgmi/

Part 6: test.css http://rathena.org/board/pastebin/1isljtsv6ir40/

 

You have to set up KeyWorld's script to useage of char_id. See here

 

!!! NOTE: Some jobnames (#20 - #28) are not verifyed, maybe they will not work properly.

 

Regards

 

Netsrot ^^


@KeyWorld:

 

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)']               = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

Edited by Netsrot
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

@Hirasu:

 

I solved that by using DIV-BOXES and TABLES in HTML, CSS and a bit PHP.

 

Will upload my test-files to pastebin in some minutes ^^

 

Regards

 

Nets ^^

Here the links to pastebin:

 

Part 1: index.php http://rathena.org/board/pastebin/z1gwqy2l583z/

Part 2: functions.php http://rathena.org/board/pastebin/zvz8k9n82v7/

Part 3: array_prefix.php http://rathena.org/board/pastebin/drmzl3oetc25/

Part 4: array_links.php http://rathena.org/board/pastebin/19odvbv9ocvns/

Part 5: array_jobnames.php http://rathena.org/board/pastebin/tq0fghh1lgmi/

Part 6: test.css http://rathena.org/board/pastebin/1isljtsv6ir40/

 

You have to set up KeyWorld's script to useage of char_id. See here

 

!!! NOTE: Some jobnames (#20 - #28) are not verifyed, maybe they will not work properly.

 

Regards

 

Netsrot ^^

@KeyWorld:

 

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)']               = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

Danke :)

 

wie ich sehe bist du deutscher  /ok

 

Könnte ich dich noch fragen wie ich das mit z.b signature.php verbinden kann? 

 

EDIT: Sorry habs gefunden :

<table class="charview" style="width:280px; height:150px; background: url(http://localhost/rochargen/index.php/character/<?php echo htmlspecialchars($row['char_id']); ?>) no-repeat center -63px;">
 
Danke es geht  /lv
 
Edit2: 
@Netsrot
 

$result = mysql_query("SELECT * FROM `char` WHERE `account_id` = '2000000' ORDER BY `char_id` ASC");

 

wie kann ich es machen das es so funktioniert? : www.127.0.0.1/Netsrot/ACCOUNT_ID

Edited by Hirasu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)'] = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

 

What did you do ?

1) Add the route in index.php (ok).

2) Duplicate controllers/character.php and rename it to character_id.php

3) Replace the class name (should be Character_ID_Controller).

4) Replace the query (WHERE char.char_id = ?)

 

And that's all.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

*-*

 

Char Select

 

aTKqfu0.jpg

 

Char View (Alt+q)

 

les53JE.jpg

Edited by Cyrix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   5
  • Joined:  12/05/12
  • Last Seen:  

 

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)'] = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

 

What did you do ?

1) Add the route in index.php (ok).

2) Duplicate controllers/character.php and rename it to character_id.php

3) Replace the class name (should be Character_ID_Controller).

4) Replace the query (WHERE char.char_id = ?)

 

And that's all.

 

I missed step 3 ^^ Now its working :)

 

This script is awesome, really /no1 /no1 /no1

 

Best Regards

 

Nets ^^

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   260
  • Joined:  04/25/12
  • Last Seen:  

Oh, I have a quest, how make the directory folder read the grf from home/

 

 

 

An thanks, very cool !

Edited by Zell
Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/28/13
  • Last Seen:  

Heya all !!!!
Does someone still have the RochargenPHP files ? I really want to try this incredible tool, but cant get them from the Git :(
Thx !! :)

Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Does anyone know how to implement the summoner/doram to display it with ROChargenPHP?

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/02/18
  • Last Seen:  

Does anyone know how to avoid cutting the larger images in the mobs? the default size is always 200x200px, how is it automated?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   18
  • Joined:  01/28/12
  • Last Seen:  

On 6/12/2018 at 6:00 AM, RicardoMarin said:

Does anyone know how to avoid cutting the larger images in the mobs? the default size is always 200x200px, how is it automated?

https://github.com/ScDarko/ROChargenPHP

  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/02/18
  • Last Seen:  

how add the news sprites, Soul Reaper and Star Emperor? 

Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  128
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

Good Day Everyone,

Before I did yuse the ROchargen but now I cant seem to make it work. All I got is blank pag even when the debug mode is open and when I open the inspect tab on chrome I cant see any error.

I hope you can help me out. Thank you.

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   0
  • Joined:  11/25/11
  • Last Seen:  

Anyone know why I could not make it to render the image?

I'm getting this message "not able to render..." even though there's no errors.

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   7
  • Joined:  06/23/14
  • Last Seen:  

Any idea about this error?

SPR::open() - Incorrect file size, shoulnot be a SPR file

 

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  11/16/14
  • Last Seen:  

Does anyone have the files for this, it's saying it was taken down due to DMCA

Link to comment
Share on other sites

×
×
  • Create New...