DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • June 24, 2018, 07:26:35 AM
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 / The Idea Place / Re: Switch Accounts on: June 20, 2018, 10:59:54 AM
It was brought to me as a suggestion by a player. I think they have a great idea. It would be cool if it could be a module and you could log onto one account from another without having to log off. You simply click switch account (maybe enter some info) and it goes. Kind of like how it is on Facebook.

I really like this idea.
2  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: May 31, 2018, 01:10:41 AM
You use cookies, therefore you collect data. FK, for reference, uses a privacy policy.

Must have a look.  Does your privacy policy (I assume you mean a disclaimer statement) actually serve to keep you from trouble with this new law?
Privacy policies are required by law. So in a way, yes, they do keep you out of trouble.

I see your front page discloses that you have cookies.

Is that actually good enough?

Wondering if an agreement, at charactger creation that says, creating a character here means that you, the user, agree to hold harmless under any EU laws concerning data privacy.

We have external links that do use cookies, as does this site.  This game is not playable without them.

Data gathered is used only for the purposes of this game and is not disseminated or sold to any third party.

Something along those lines....
That's essentially what the new legislation requires.
3  Coding Support / Coding Support Desk / Re: Tabs on MOTD Header To Turn Red When New MOTD on: May 26, 2018, 11:08:14 AM
Seenupdates is not set to false and I wouldnt know where to set it.  Im thinking the first $session without ['user'] needs it. Im lost really as how to fix this.

The status of the polls and changelogs is stored on the account, but the contest status is stored in the session. [...] maybe the $session['needtoviewcontest'] not being a saved variable.
4  Coding Support / Coding Support Desk / Re: Tabs on MOTD Header To Turn Red When New MOTD on: May 20, 2018, 08:07:03 AM
I want each of the tabs other than the MOTD one, which I have called Kinks, to turn red when there is a new one. I tried to get help and it just didnt work and the person swears it will work this way and its not. I have tested it multiple times. I'll put the code below and someone can tell me where we messed up. Thanks!

$b=translate_inline("Contests & Events");

if ($session['needtoviewcontest'] == 1)
$highlight_contests = "<a href='motd.php?op=contest' style='color:red'>$b</a>";
$highlight_contests = "<a href='motd.php?op=contest'>`r$b</a>";

if ($session['user']['needtoviewpolls'] == 1)
$highlight_polls = "<a href='motd.php?op=poll' style='color:red'>$c</a>";
$highlight_polls = "<a href='motd.php?op=poll'>`L$c</a>";

if ($session['user']['needtoviewchangelog'] == 1)
$changelog = "<a href='motd.php?op=changelog' style='color:red'>Server Updates/Enhancements</a>";
$changelog = "<a href='motd.php?op=changelog'>`4Server Updates/Enhancements</a>";

output("<center><big><a href='motd.php'>`5$a</a> | $highlight_contests | $highlight_polls | $changelog</big></center><br>",true);

You don't have an opening tag. PHP requires <?php at the start of each page. As Aeolus has said, there is probably an accounts table issue. There seems to be some confusion here as to what you are trying to do, between your developers. The status of the polls and changelogs is stored on the account, but the contest status is stored in the session. This would mean that the contest is probably changing with each login. There are no setters here for any of the contests, polls, or changelogs here - so we cannot help you properly. You need to include the other parts of this code, because this is clearly not where the issue lies, except for maybe the $session['needtoviewcontest'] not being a saved variable.

Also, it seems as if the changelog will be perpetually red, since the LotGD color code for red is `4 and you have style='color:red' in the if statement.
5  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Mega User Flag on: May 01, 2018, 09:07:49 AM
Given that you are the acctid of 1, you could use the following SQL statement through PHPMyAdmin. It will give you every flag besides translation tool, if I recall correctly.

UPDATE accounts SET superuser = 112984063 WHERE acctid = 1
6  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Creature AI in Creature Database on: April 10, 2018, 08:21:28 AM
OK...so on my test server, that runs 1.1.2 there was a column in my creature database called 'creatureaiscript' which did not exist on 1.1.0

Totally have no idea what you use this for...but that is not my question here.

I was a bit lazy, and did not want to re-create all my unique monsters from my live site 1.1.0 - so what I did was drop the table from the 1.1.2 site and then imported the table from the 1.1.0 site

That seemed to work, but then I could no loner use the Creature Editor to add new monsters, I got an error about the missing column.

So using the info from the error, I created a column in the database for this and now it all works again.

My question...what is the structure of the column 'creatureaiscript' in a normal install?

For now I set it up as a VARCHAR with 120 characters, NULL by default and using latin1_swedish_ci collation....because that is how most of the other similar columns appeared to be set up.

It works, and I get to add creatures to my database using Creature Editor again.

But I'd like to actually have the correct structure on this column.  Do I have it right, or is there anything I need to change?

Again, I do not even know what you use this column FOR.

The column type is normally Text, you have the rest correct.

Thanks, I will fix that.

Now, what is this AI actually used FOR??

It is used for attaching a custom script to the creature, giving the creature buffs etc.

OOK...totally curious, then...would it be possible to use that, for example...to have a creature only attack male players?  Or only female players?  Or only a specific race...or to not attack a specific race?

Wondering kinda what the possibilities are here...

You asked that question here before.
7  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: reCAPTCHA anti-spam for petition.php on: April 01, 2018, 06:32:00 PM
Nope. When I placed it exactly how you said all it did was post the you are a bot part at the top of the page. No widget or error.

What have you tried? Where have you tried it? Or are you wanting us to give you an exact answer so you don't learn?

She tried pasting the code example from TGTarheel between lines 95 and 96 of her modified default petition page.
8  Coding Support / Coding Support Desk / Re: Add Extra Whitespace In Output?? on: April 01, 2018, 09:46:34 AM
I am trying to get extra whitespace between two words on the same output line.

Everything I look up on Google and so on...wants me to use the echo function in PHP which does not seem to work in LOTGD

I try using &nbsp; - but it literally outputs it.

I am at a loss as to how to FORCE HTML to fully recognize that I do NOT want it to render in the HTML browser with the whitespace between these words condensed to one space, that I literally DO want 8 or nine spaces.

What I have done....is run two tables alongside each other...instead of one on top of the other.  But the heading along the top (not part of the bale, and I don't want it to be because then I can't get color and bolding...the heading runs up against each other instead of showing where I want...unless II put aggrivating crappy ----------- in between my words, which I really don't want.  I actually WANT the whitespace

Literally...what I want is

Hello            World
and not
Hello World

If this makes clear what I am trying to accomplish here.

also tried a tab...which can work with addnav - I have done this, you use &#149;
But how to make it work with an output line...so that you get an actual tab or something??

I can't quite get there...

I can use <td>&nbsp'&nbsp;&nbsp;&nbsp;</td>
to simulate a tab and get the beginning of the line to move over.  But I want to do it in the middle of two words on the same line.  And nothing works.

NOTE: rawoutput("<pre>");
and later
also does not produce the desired reult it causes me to lose my <h4></h4> heading formats and my leading &nbsp; 's when I try it.

In the meantime, I have worked out a little something I can LIVE WITH...if I must...but I really, really want the whitespace and HTML insists on condensing...

Are you sure that you have not used rawoutput, or output with the last argument as true? I assume that you did, since you know HTML goes in the rawoutput function - and &nbsp; is a HTML entity. The following works for me, but this is still bad practice:
rawoutput("Hello &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; World");

I am trying my best to understand what you are trying to do. This sounds like something you should resolve with proper CSS - adding manual whitespace, coloring through only the core's tag system, and trying to add a table column just to take up some space can all be rendered differently on different browsers. It sounds to me like you want a 'T' chart - which is really, really simple to do in CSS.
9  Game Administration, Installation and Configuration / Game Administration Chat / Re: PayPal Changes on: March 02, 2018, 01:38:33 PM
I don't believe they do, but I just wanted to confirm - do any of the changes listed at https://www.paypal-notice.com/en/ affect LoGDs?

No, and yes. No changes are needed in the core's code. Servers need to implement SSL as mentioned before:

Also worth noting that post-backs will not be in HTTP anymore, instead going through HTTPS. Everyone will need a SSL certificate.

To which I can recommend to use https://letsencrypt.org/ if one needs a certificate.
10  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.
11  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.
12  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.
13  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.
14  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.
15  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.
Pages: [1] 2 3 ... 25

DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

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