DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 18, 2019, 03:27:34 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 125
1  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: White screen on Installation on: June 18, 2019, 06:17:56 AM
In lib/dbwrapper.php, change DBTYPE from mysql to mysqli_proc.
2  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: White screen on Installation on: June 18, 2019, 03:13:59 AM
Check your server's error log, the issue will be reported there.
3  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Translation Wizard on: June 14, 2019, 03:09:21 PM
No, you have to do it all manually, each language.
4  Coding Support / Coding Support Desk / Re: Racial Hitpoints on: June 14, 2019, 12:18:32 AM
I'd suggest simply making a module that, after a successful DK, sets maxhitpoints to a custom number dependent on the player's race, then remembering to add on any hitpoints bought with DK points.

As far as I can tell, maxhitpointsperlevel is only for companions. In train.php, maxhitpoints is always increased by ten. If you want to change this, you could insert a modulehook there, and modify that amount in the same manner as the initial suggestion above.
5  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Translation Wizard on: June 14, 2019, 12:08:02 AM
Core game. You can translate modules by giving yourself the Translation Tool flag in User Editor.
6  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Abandonded Castle (REAL MAZE/LABRYNTH) for 0.9.8 on: April 14, 2019, 08:14:59 AM
What is line 15 of modules/lib/abandoncastle.php?
7  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Recommended version PHP, MySQL & Apache/nginx? on: April 10, 2019, 11:48:46 PM
You needed to change it in dbconnect.php, not dbwrapper.php

This is wrong. Change what? dbconnect is the core database credentials file, dbwrapper is the lib database functions file.

If you meant my original comment, I've corrected the typo, and Smirnov appears to have edited the correct file.
8  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Recommended version PHP, MySQL & Apache/nginx? on: April 09, 2019, 03:56:42 AM
In lib/dbwrapper.php, change DBTYPE from mysql to mysqli_proc.
9  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Recommended version PHP, MySQL & Apache/nginx? on: April 09, 2019, 02:07:02 AM
Why can't you install it on PHP 7? The "LoGD 1.1.2 with Bug Fixes (Recommended, 2017)" version should be able to be installed on PHP 7.
10  Modules, Themes and other customizations for your game / Races and Specialties for version 1.x.x / Re: Esper mage is Not Working For Me... on: March 25, 2019, 11:39:14 PM
You can turn on error checking to have the error displayed on the page.
11  Modules, Themes and other customizations for your game / Races and Specialties for version 1.x.x / Re: Esper mage is Not Working For Me... on: March 25, 2019, 01:06:42 AM
A white page almost always means an error in the code. Check your error logs.
12  Coding Support / Coding Support Desk / Re: Looking for Light Coding Help on: February 27, 2019, 01:19:00 PM
Currently working on a private, invitation only server. Ran into a few hiccups with some modules and could really use a coder, at least part-time, to give me some assistance. Basically, just light bug fixing -- although I will never turn down custom mod work from interested parties.

Mostly, I just need to iron out the edges of a few pesky mods and need some guidance so that we can be in functional beta.

Only ever work with someone you know and trust. Never work alongside someone as if it's a job application. Who knows what they could do to your sites if they ever disagreed with you.
13  Coding Support / Coding Support Desk / Re: Seeking a coder on: February 23, 2019, 01:14:49 AM
Only ever work with someone you know and trust. Never work alongside someone as if it's a job application. Who knows what they could do to your sites if they ever disagreed with you.
14  Coding Support / Coding Support Desk / Re: How To Get One Word Within A String Variable? on: January 11, 2019, 02:27:28 AM
I tried an unserialize on this.  It still came back wrong, and this time it returned an array.
So I went back to in_array - still did not work.

So, I imploded the value of the fetched variable as a comma delineated string...and all I got was a bunch of 1's separated by commas.

I am truly flummoxed here.  Nothing is getting me to where I want to be.

I looked in the case: biostat of Petra.
But I don't understand quite what is happening there.  I want to compare each thing one at a time.
I need to compare ONE AT A TIME....each possible tattoo, do they have it or not?  And then do or do not do an action accordingly.

I am not sure how I get there.

Go to http://phptester.net/ and put this in:

Code:
<?php
$s 
'a:9:{s:7:"mermaid";i:1;s:7:"rainbow";i:1;s:10:"red_dragon";i:1;s:13:"yellow_dragon";i:1;s:11:"blue_dragon";i:1;s:12:"white_dragon";i:1;s:12:"black_dragon";i:1;s:11:"gold_dragon";i:1;s:12:"green_dragon";i:1;}';
$t unserialize($s);
print 
"<pre>";
print_r($t);
print 
"<pre>";

It works. In your code, you might need to use stripslashes() first, when you get the pref.
15  Coding Support / Coding Support Desk / Re: How To Get One Word Within A String Variable? on: January 11, 2019, 02:23:50 AM
Code:
if ($rdtat = "yes") {

Look at this line in your code. = is to set. == is to check. You're setting $rdtat to "yes" in your if statement.

Just for interest...I had it print out the value of $tat and this is what came back

a:9:{s:7:"mermaid";i:1;s:7:"rainbow";i:1;s:10:"red_dragon";i:1;s:13:"yellow_dragon";i:1;s:11:"blue_dragon";i:1;s:12:"white_dragon";i:1;s:12:"black_dragon";i:1;s:11:"gold_dragon";i:1;s:12:"green_dragon";i:1;}

Yes, that is a serialized array.

Still, though, should I actually do an unserialize on this?

How would I get where I am trying to go?

Use unserialize() on it, then you can use in_array() to see if a tattoo is in that array of tattoos.

But why would the strpos function find something that was not there?

Going back to the first part of my answer, that therefore means that strpos() is working fine. You're just re-setting the $rdtat variable after the use of strpos().
Pages: [1] 2 3 ... 125

*
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
150 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search