DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 18, 2018, 06:59:51 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 25
1  Village Square / General Discussion Area / Re: Sound in lotgd on: September 11, 2018, 06:09:47 PM
Rewriting combat to be modular and using JavaScript to handle the battle logic would be better. Popups would be annoying.
2  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Account Switcher : File Submission/Discussion on: August 26, 2018, 11:18:50 AM
I do see ONE stellar advantage to having this installed.  Admins wold thus know FOR SURE...who is whose alt...allowing misbehaving players to be appropriately sanctioned if they use alts to cheat or create drama, or stalk and harass other players....as some people DO use alts for this sort of thing.  Anyone using this module for their alts...it would become totally clear whose alt is whose.

Anyone that would cause trouble at a place is not going to register an alt like that lol. Checking ip and id are the only measures you will have - if they want to change those to stay hidden, they surely won't add a link between accounts.
3  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Account Switcher : File Submission/Discussion on: August 20, 2018, 10:58:11 AM
It looks great. Thank you. Nice touch on the antispam feature.
4  Game Administration, Installation and Configuration / The Idea Place / Re: Switch Accounts on: August 17, 2018, 12:34:38 AM
If you would do that right, you'd replace the entire login process with that, and attach characters to it. Would solve the multi-char-problem, and other numerous things.
But, you would have the replace the entire login process and so on...

Never thought of it like that, but that is still relatively easy to do anyways. I will look into making a splash page to select a character on login. I don't want to release my current version because I don't really approve of it.
5  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.
6  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.
7  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.
8  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!

Code:
$a=translate_inline("Kinks");
$b=translate_inline("Contests & Events");
$c=translate_inline("Polls");

if ($session['needtoviewcontest'] == 1)
$highlight_contests = "<a href='motd.php?op=contest' style='color:red'>$b</a>";
else
$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>";
else
$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>";
else
$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.
9  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.

Code:
UPDATE accounts SET superuser = 112984063 WHERE acctid = 1
10  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.
11  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.
12  Coding Support / Coding Support Desk / Re: Add Extra Whitespace In Output?? on: April 01, 2018, 09:46:34 AM
Okay...
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
rawoutput("</pre>");
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:
Code:
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.
13  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.
14  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.
15  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.
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
35 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search