Dinze
-
Content Count
42 -
Joined
-
Last visited
Reputation Activity
-
-
Dinze got a reaction from Dogpatch in Flux v4p problem
Yeah. There's an issue with hercules fluxcp-- Flux::config('ThemeName') doesn't work on addons.
Go to your modules/voteforpoints/add.php#L93 and
change:
$filepath = FLUX_THEME_DIR.'/'.Flux::config('ThemeName').'/img/'.Flux::config('ImageUploadPath').'/';to: $filepath = FLUX_THEME_DIR.'/default/img/'.Flux::config('ImageUploadPath').'/';change default to whatever theme name are you using.
If still won't work just use the url option instead of uploading a picture.
-
Dinze got a reaction from evilpuncker in Feefty's FluxCP Addons Release
To anyone having an Unable to vote for the server. Err no. 4 error try this fix.
/modules/voteforpoints/index.php
Change
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)"; $sth = $server->connection->getStatement($sql); $bind = array($cashpoints_var, $res->votepoints, $account_id); $sth->execute($bind); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break; to
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account_id, $cashpoints_var, $res->votepoints)); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break; -
Dinze reacted to KeyWorld in How can i handle Chat Message Strings
It's packet based.
<header><packet length (only if packet size is dynamic)><packet data>
So currently, yours is at the end:
8e001000436865636b6572203a203100 Where :
8e00 is the packet id (0x8e) 1000 is the packet size (0x10) the rest is the message data.
-
Dinze reacted to KeyWorld in roBrowser - Ragnarok Online for Web Browsers
Seems like I didn't write a post here about this project, it's time to do it.
I'm here to introduce roBrowser, an open source project that try to port Ragnarok Online in the browser using web technologies (javascript, HTML5, WebGL).
As it's running in a web browser, roBrowser isn't OS dependent and run fine on Linux, Macintosh and Windows. It's also running on some smartphone and tablets but it depend if the system support webgl and I have to admit, it has bad control (not optimize for touch control).
It can also be run as a Chrome App, I personally use it to have a nice icon on my desktop.
From now, I tested it (and it's working) on Chrome, Firefox, Safari and Opera. It will work in future on IE11 when they will fix their rendering engine.
roBrowser is not a different game as Gravity built (Ragnarok Zero, Ragnarok Violet, ...), this project is intended to be another client for RO1, to connect on private servers.
Get the source
(Thanks to report all bugs)
If you like roBrowser, you can help me improving it or
even thinking about doing a donation ?
Screenshots
The project is still on going, currently missing a lot of features to match the official client (trade ui, npc buy/sell, ...), but I'm working on it.
Some usefulls links :
[*] Source code [*]Installation guide [*]WebSite [*]API Guide [*]Forum [*]Demo (Yep there is even a demo if you want to try it).
-
Dinze reacted to KeyWorld in Web Grf Viewer
GRF Viewer
Hi there !
If you remember, in the past I released a buggy web grf viewer.
It was slow, didn't work with big GRF because of memory issue, can't decode DES encryption, now time to present its new version.
Basically this web tool allow you to select your own GRFs and display their contents directly in the browser. Nothing to download.
As its name suggest, it can't write into the GRF, there are currently no API available (for security reason) to have write access to the user computer, so the only point of this tool is to display its content and search on it. There are no way to repack, add or modify files. Just view and extract files.
This tool is built using only javascript, html5 and webgl, it is in my point of view a demonstration of what can be done in the web today with new technologies.
It can view as thumbnail some sort of files : bmp, gif, jpeg, tga, spr, pal, and some tools are included to render models and maps or listening audio files.
Two possibilities at the start up :
Select a GRF (click on "select files", or drag drop your grfs in the box).
Note: once the page quit or reloading you have to re-select the files, the browser do not remember them. Click on the data folder, in this case, it will show resources from my remote client.
This tool is an application from roBrowser, it's using roBrowser's core. So if you ever find a bug, I'll be really happy to fix it !
Note: it's possible the viewer stop rendering a directory content because it encounter a corrupted file in the GRF (wrong gzip encryption, or invalid file offset) or the file is encrypted.
You can test this tool online here: http://www.robrowser.com/prototype/GRF-Viewer/
Some preview:
All feedback are welcome.
Have fun~
-
Dinze got a reaction from karazu in Can some check this script please?
if ( countitem( 501 ) < 10 || !countitem( 514 ) ){
-