DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • February 24, 2018, 01:55:24 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Resource Pages

  Show Posts
Pages: [1] 2 3 ... 25
1  Game Administration, Installation and Configuration / Game Administration Chat / Re: Game Modification Allounce on: February 18, 2018, 06:02:46 PM
Before I attempt modifying anything for my LOTGD game, I figure I'd ask ahead of time.
As per the game license, am I allowed to modify the game to have a different title, for instance. Instead of  Legend of the Green Dragon, maybe something like (as an example,) Legend of the Dragon Warrior?
Furthermore, if I create a race, am I required to publish my source here on Dragon Prime? I ask this because the sorce file of my race does have a download URI which people can get the created race source code from.

You are required to publish any changes made to the core or a released module. Any new module or idea that you make does not need to be released. You can edit anything you wish to, so long as you follow the license.
2  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Upgrade 1.1.0 to 1.1.2 on: February 02, 2018, 11:08:25 AM
Is there some reason why I could not leave my existent database in the server and just clean out everything else?

You have to have a database first, anyway, in order to run the installer, right?

I think you misunderstood Anharat just a little bit. He is not saying to leave the database on the server,  'clean the server' here means to wipe everything. You can actually skip the installer outright and just write a dbconnect.php file if you already have a compatible* populated database ready to access - the installer is only there to populate an empty database and write the connection info.

* I am not sure if the 1.1.0 database structure is the same as 1.1.2's - which would make it incompatible.
3  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: December 28, 2017, 09:36:03 AM
It states there he procedure must be "automatically" if I remember correctly.
So... no.
You have to have it in the software.

If you save the data one moment longer than necessary, you're technically breaking the regulation (hence I did put that into the module)

Well, then.  Until and if I could get that working...is there a way to have EU players either state that they do not wish to invoke that right...at least till I get it working...or would I need to not accept new players from EU?

I sorta doubt the EU cops would be real huge in going after a two-bit game operator that doesn't have a pot to pee in and is in America anyway, but, all the same, the law is the law, and I need to know how I can comply...I am assuming your moduie, Nightborn....won't work with 1.1.0 that I am running?

I am NOT ready for an upgrade yet.

The regulation will probably not be policed heavily here in the US, but if there is a leak of data and the source is discovered to have come from your server, then they would have an issue. This regulation is to make server owners more aware of the risks that they put people in when the source of their application is not secure. So no, you will not have an agent knocking on your door come April 2018, but it is just a lot safer to follow regulation and comply with the laws that protect us. I know it is frustrating for you in this instance - it's even a tad bit annoying for me - but it needs done. Perhaps you could create a backup of your character restore module, replace it with this, and test it out for 1.1.0. If there are any issues with NightBorn's character restore on 1.1.0, you could post here and a solution will be found quickly.
4  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: December 26, 2017, 10:57:32 PM
Would this apply ONLY to EU users registering after this takes effect, or would it also be retroactive to existing EU users?

If so, could anyone develop a module that would handle this...so that user info could be completely deleted on request?

I am not sure how you handle this...

It would be more than likely an update or fork of the current character restore module, since that is what handles most storage on most servers. That would only require a few more hooks, theoretically, and would not be much of a change to the module. However, I would have to look into the language of the GDPR more to be 100% certain.
5  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: December 26, 2017, 05:03:46 PM
Wouldn't the simple solution to this be:
* Require consent for any user on the creation screen, to notify players that their email, IP, and cookies are analyzed for operation of the server.
* Place information about that consent in the logged-in section of the game (Since they need to be able to view their rights again at any time).
* Access to all data for that account (mail to and from a certain user, a user's petition data, and character/preference data) upon request.
* Delete email, ipaddress, uniqueid, mail, petitions and other personal data from character restore sheets, or delete the entire sheet itself if requested.

If the user does not agree to all terms, you should just delete the account and not allow the player to join. My only concern about the topic is transferring data, and the right of erasure. If a player says "Forget me" you have to delete all character, mail, and petition backups of an account from every backup. That, or I am just not understanding the language on that site. This is particularly nasty if you have a backup system in place for both files and SQL data that run daily.
6  Game Administration, Installation and Configuration / Game Administration Chat / Re: PHP 7?? on: December 25, 2017, 03:24:50 PM
Yes, the version in the Downloads section.

I'm not sure how that would be the case; I just pulled down lotgd-1.1.2_Dragonprime_Edition_BUGS_FIXED, which still uses mysql_* functions at several points during installation; you actually mentioned this recently. TGTarheel: The post I just linked includes an updated installer from Aeolus that does not use the mysql_* functions.

There are also several PHP 7 efforts in various stages of usability.

Just trying to figure how best to go about this...not happy at all about this, backward compatibility should have been maintained...I know this is not the fault of DP...but rather the geniuses that feel the need to update PHP and "fix" what isn't broken.

Wow, that is not the mindset you should have at all. Upgrading the source of PHP is necessary to add on additional features, fix bugs, and increase security. It is fixing the broken things that do not make sense, and benefits you by vastly increasing your loading times. You want some compatibility for newer features and better modules, so you have to upgrade just as well. It is a natural cycle that you just need to be prepared for.
7  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Site Backup (Database & Files) v2.0 : File Submission/Discussion on: December 13, 2017, 01:12:29 AM
In this case, if you want to be able to restore directly from the backup without having to first initialize the database (or at least the now-missing accounts_output table), I think it'd be a good idea to split the database export into two statements.


('mysqldump --no-data -h'.$DB_HOST.' -u'.$DB_USER.' -p'.$DB_PASS.' '.$DB_NAME.' > '.$_SERVER['DOCUMENT_ROOT'].'/'.$filename.'_schema.sql'$output=array(), $worked);

exec('mysqldump --no-create-info --opt -h'.$DB_HOST.' -u'.$DB_USER.' -p'.$DB_PASS.' '.$DB_NAME.' --ignore-table='.$DB_NAME.'.accounts_output > '.$_SERVER['DOCUMENT_ROOT'].'/'.$filename.'_data.sql'$output=array(), $worked);
Warning: These exec statements are not safe. A good password is likely to contain special characters, and dropping those into a command like this will likely result in failure. Ideally, this would be where something like a parameterized function call would be used; this being PHP, that probably doesn't exist, which is presumably why escapeshellcmd exists.

It'd need to be tested, but something like this should be safer:


(escapeshellcmd('mysqldump ...'));

An excellent suggestion! It is nice to see someone take security into account. The exec commands will work, since it is just executing the command - noting seems out of place there. Also, escapeshellcmd() will (should) break any special character passwords if the server is running on Windows.
8  Game Administration, Installation and Configuration / The Idea Place / Re: scenario's for new modules? on: December 13, 2017, 12:57:43 AM
Sorry, but what do you mean with "So meme'd up"? Firstly, what do you think about introducing a new degree of difficulty in the forest? On Hogwartslive, I don't know if this is the same on dragonprime, you can "look for something" =monsters have same level as player; "go thrillseeking" =monsters are 2 levels higher than player; "go slumming" =monster is one level below player; "search suicidally" =monsters are 3 levels higher than player (only available after 50 dk's :ve's in hl ve =Voldemort encounters. But what about a level "hunt for horrors"? This level I should make available after 300 dk's or ve's; monsters in this section of the forest could be 6 levels higher than player; and Voldemort or dragon you only can fight at level 15 has not level 18 but at level 22. I'm only puzzling how to do the latter: player could opt in into "hunt for horrors" section and accepts the difficulty degree of dragon/voldemort when player reaches level 15, or you could introduce a badges module and only after obtaining the "horrorhunt-badge the player could battle this though dragon/Voldemort and other though opponents. This is my first proposal. I have more at my desk. Best, WW

That is just a tagline, and is not applicable to any sort of post that I make. It is rather off-topic, really.

I would not suggest making that sort of an edit, but it is possible to write a module that will just grab creatures that will instead be higher levels. You need to fill out the full level stack (16 - ~23) with creatures then. I do not believe that just throwing levels at a player will exactly fix the power-creep issue that is native in the DragonPrime core. This sort of model would make sense if you rewarded the players with a formidable experience gain - but your idea of badges will perfectly negate the need to introduce higher levels. It's all about what you want for your server. A stronger set of creatures to attack would mean a little more strategy, but it's hardly any different. A badge to show accomplishment would be nice, but there are hall of fame lists for that exact reason. It's best to view which angle will bring more value to your server.
9  Game Administration, Installation and Configuration / The Idea Place / Re: scenario's for new modules? on: December 10, 2017, 11:57:38 AM
Hi I'm new here, so if I make some faults please tell me how to behave over here. Is this the correct board to post some ideas for new modules? If yes, I have some ideas and scenario's in draft phases. Programming isn't my piece of cake. Best, WW

You can post your ideas here and it will more than likely be made quickly. Most ideas these days are a breeze to design.
10  Coding Support / Coding Support Desk / Re: Question About Item System on: November 06, 2017, 04:35:58 AM
I have not looked at the item system module at all, and you did not provide a full snippet of the _dohook() function, so I am going to assume that this is in a switch case. It is better to just add a break for those under 100 Dragon kills - it will look a lot nicer in the code, rather than wrapping everything in an if statement.

global $session;
        if (
$session['user']['dragonkills'] <= 100) {
$inventory get_inventory();
while ($item db_fetch_assoc($inventory)) {
$destroyed 0;
for($c=0;$c<$item['quantity'];$c++) {
if($item['dkloosechance'] >= e_rand(1,100)) $destroyed++;

if ($destroyedremove_item((int)$item['itemid'], $destroyed);
if ($count == 1) {
output("`n`2Shattered around you lie the remains of a once mighty item destroyed by the power of the dragon's flames. ");
} else if ($count 1) {
output("`n`2Shattered around you lie the remains of once mighty items destroyed by the power of the dragon's flames. ");
output("It seems `^%s items`2 have been destroyed."$count);
11  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: HELP!! PHP 5.5 on: October 29, 2017, 02:53:06 PM
This is a great reason to keep your stuff upgraded.
12  Coding Support / Coding Support Desk / Re: MYSQL Connect Error on: October 19, 2017, 10:53:28 AM
I have searched on here for answers but all pertain to installation. My error is post installation. Every once in awhile when my site goes to process this function in the dbwrapper_mysql.php file I get the following error.

Function processed:
function db_connect($host,$user,$pass){
$fname = DBTYPE."_connect";
$r = $fname($host,$user,$pass);
return $r;

Error that happens:

PHP Warning:  mysql_connect(): Access denied for user 'thecomz2'@'localhost' (using password: NO) in /home/thecomz2/public_html/lib/dbwrapper_mysql.php on line 204

Can someone tell my why this happens and where Id look to fix it? Id greatly appreciate it.

It's happening because the argument passed for your $pass (database password) is blank. You can tell from the "access denied for user 'redacted'@'localhost' (using password: NO)" bit, which unfortunately gives away your database username... Not the best of security management there, maybe you should edit your post. Look for any db_connect functions - that's where your issue lies. Since it's 'every once in a while', maybe check items hooked into newday_runonce.
13  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 13, 2017, 08:08:35 AM
I do not believe that was in any way edited or why I would.

I will look for another declaration of page_header then.

Just looked, I do not see another declaration.  I am stumped.

Do you have to somewhere require_once /lib/sanitize.php or something?

That is the only thing I can think of...

You shouldn't have to. There should have been a fatal error because of the undeclared function if you didn't require the file. You should probably try that out before posting about it o.O.
14  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 12, 2017, 09:26:32 AM
Where the dwellings code uses the page_header function when you enter a dwelling, use the sanitize function first on the dwelling name, then pass that into page_header.

Humm...not sure I get it.  It LOOKS like the sanitize is already being used, nevertheless, I still get unwanted stuff in my page headers.

Here is the code snip for case_enter on dwellins:
if (
$session['user']['location'] != get_module_setting("logoutlocation"))
$sql "SELECT name,description,ownerid FROM ".db_prefix("dwellings")." WHERE dwid=$dwid";
$result db_query($sql);
$row db_fetch_assoc($result); 
if($row['name'] == ""){
$name translate_inline("Unnamed");
$name $row['name'];

Is that not supposed to sanitize the name and get the bold and color codes out of the page header?

Or am I missing something here?

You should look for another declaration of page_header() then. Unless your lib/sanitize.php functions are edited - yes, that should remove the backtick character and anything in the set of [1234567890!@#\$%^&)~QqRVvGgTtjJeElLxXyYkKpPmM?*AabicnHw] (as of 1.2).
15  Village Square / General Discussion Area / Re: What was the fastest playthrough For the first dragonkill on: October 12, 2017, 09:20:24 AM
LevelExp per FightExp for LevelExp DiffRounds

That would make about 400 rounds for the first dragonkill. Seems like quite a lot just now, maybe exp gain is a little increased in battle (haven't checked the scripts). Also there might be fights vs multiple enemies that give more exp and so on and so on.  Wink
oh lol, thank you... THAT sir is really high end Information Cheesy thanks man. It helps a lot Cheesy

This assumes that players start with no gems, or that they won't find any during fights, it seems. Buying vitality through the inn can seriously effect your gameplay - in higher kill counts, it's not surprising to get a new dragon kill in less than a minute on most servers. Also need to keep in mind that there is the chance of death or loss of experience. Balance and timing is something that's more specific to the server, and the modules in the server.
Pages: [1] 2 3 ... 25

DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
25 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search