DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 25, 2018, 03:11:35 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 7
1  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 19, 2018, 02:46:01 PM
Modules like foliwench and others don't directly work with this mana system.
I think this dosen't use specialty uses, it uses a mana system and a leveling system so modules made to work with normal specialties  wont work with it
2  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 18, 2018, 05:03:50 AM
Thank you so much, u should add that fix to the module it works flawlessly xD
3  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 17, 2018, 10:59:09 AM
Thats aelias system i'm talking about thanatos mana wich is much simpler

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1122
4  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 17, 2018, 02:36:16 AM
Thanks for all the help i figured it has to do with the permissons i have to he db so maybe mana specialties is the same issue i fixed the drinks editor wich had the same issue with a inserting the db table through phpmy admin xD i know its off topic but can someone send me the mana specialties skills table?
5  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 14, 2018, 10:52:56 AM
i uploaded everyhing alright xD just weird it dosent save name ids
6  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 14, 2018, 08:10:40 AM
Thank you alot now it seems to save but dosent save the name of the item xD
7  Coding Support / Coding Support Desk / Re: Equipment shop dosen't save on: April 14, 2018, 06:50:04 AM
I'm using 1.1.2, quit on 1.0.6 idea
8  Coding Support / Coding Support Desk / Equipment shop dosen't save on: April 14, 2018, 05:08:20 AM
PHP Warning: "array_merge(): Argument #1 is not an array"
in /home/vhosts/crystaltales.eu5.org/modules/mysticalshop/run/editor_what/edit.php at 6.
Call Stack:
2: array_merge(NULL, Array()) called from /home/vhosts/crystaltales.eu5.org/modules/mysticalshop/run/editor_what/edit.php on line 6
3: require_once("/home/vhosts/crystaltales...") called from /home/vhosts/crystaltales.eu5.org/modules/mysticalshop/run/case_editor.php on line 58
4: require_once("/home/vhosts/crystaltales...") called from /home/vhosts/crystaltales.eu5.org/modules/mysticalshop.php on line 50
5: mysticalshop_run() called from /home/vhosts/crystaltales.eu5.org/runmodule.php on line 33
First run, not notifying users.
array(2) {
'firstrun' = '1'
'errors' = 'array(0) {
}'

Whenever i try to add an item this error pops out and the item dosen't save
9  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Installing error on 1.0.6 on: April 10, 2018, 01:47:51 PM
Sorry for the double post but
where would i get the said mysql_functions
Code:
<?php
// addnews ready
// translator ready
// mail ready
require_once("lib/errorhandling.php");
require_once(
"lib/datacache.php");

define('DBTYPE',"mysqli_proc");

$dbinfo = array();
$dbinfo['queriesthishit']=0;

function 
db_query($sql$die=true){
 
if (defined("DB_NODB") && !defined("LINK")) return array();
global $session,$dbinfo;
$dbinfo['queriesthishit']++;
$fname DBTYPE."_query";
$starttime getmicrotime();
$r $fname($sql);

if (!$r && $die === true) {
  if (defined("IS_INSTALLER")){
  return array();
}else{
if ($session['user']['superuser'] & SU_DEVELOPER || 1){
require_once("lib/show_backtrace.php");
die(
"<pre>".HTMLEntities($sql)."</pre>"
.db_error(LINK)
.show_backtrace()
);
}else{
die("A most bogus error has occurred.  I apologise, but the page you were trying to access is broken.  Please use your browser's back button and try again.");
}
}
}
$endtime getmicrotime();
if ($endtime $starttime >= 0.25 && ($session['user']['superuser'] & SU_DEBUG_OUTPUT)){
$s trim($sql);
if (strlen($s) > 800$s substr($s,0,400)." ... ".substr($s,strlen($s)-400);
debug("Slow Query (".round($endtime-$starttime,2)."s): ".(HTMLEntities($s))."`n");
}
unset($dbinfo['affected_rows']);
$dbinfo['affected_rows']=db_affected_rows();
return $r;
}

//& at the start returns a reference to the data array.
//since it's possible this array is large, we'll save ourselves
//the overhead of duplicating the array, then destroying the old
//one by returning a reference instead.
function &db_query_cached($sql,$name,$duration=60){
//this function takes advantage of the data caching library to make
//all of the other db_functions act just like MySQL queries but rely
//instead on disk cached data.
//if (getsetting("usedatacache", 0) == 1) debug("DataCache: $name");
global $dbinfo;
$data datacache($name,$duration);
if (is_array($data)){
reset($data);
$dbinfo['affected_rows']=-1;
return $data;
}else{
$result db_query($sql);
$data = array();
for ($i=0;$i<db_num_rows($result);$i++){
$data[$i] = db_fetch_assoc($result);
}
updatedatacache($name,$data);
reset($data);
return $data;
}
}

if (
file_exists("lib/dbremote.php")) {
require_once("lib/dbremote.php");
}

function 
db_error($link=false){
$fname DBTYPE."_error";
if ($link!==false)
$r = @$fname($link);
else
$r = @$fname();
 
if ($r=="" && defined("DB_NODB")) return "The database connection was never established";
return $r;
}

function 
db_fetch_assoc(&$result){
if (is_array($result)){
//cached data
if (list($key,$val)=each($result))
return $val;
else
return false;
}else{
$fname DBTYPE."_fetch_assoc";
$r $fname($result);
return $r;
}
}

function 
db_insert_id(){
 
if (defined("DB_NODB") && !defined("LINK")) return -1;
$fname DBTYPE."_insert_id";
$r $fname();
return $r;
}

function 
db_num_rows($result){
if (is_array($result)){
return count($result);
}else{
  if (defined("DB_NODB") && !defined("LINK")) return 0;
$fname DBTYPE."_num_rows";
$r = @$fname($result); //Whyfor turn off error reporting here?
return $r;
}
}

function 
db_affected_rows($link=false){
global $dbinfo;
if (isset($dbinfo['affected_rows'])) {
return $dbinfo['affected_rows'];
}
 
if (defined("DB_NODB") && !defined("LINK")) return 0;
$fname DBTYPE."_affected_rows";
if ($link===false) {
$r $fname();
}else{
$r $fname($link);
}
return $r;
}

function 
db_pconnect($host,$user,$pass){
$fname DBTYPE."_pconnect";
$r $fname($host,$user,$pass);
return $r;
}

function 
db_connect($host,$user,$pass){
$fname DBTYPE."_connect";
$r $fname($host,$user,$pass);
return $r;
}

function 
db_get_server_version()
{
$fname DBTYPE."_get_server_info";
$r $fname();
return $r;
}

function 
db_select_db($dbname){
$fname DBTYPE."_select_db";
$r $fname($dbname);
return $r;
}
function 
db_free_result($result){
if (is_array($result)){
//cached data
unset($result);
}else{
  if (defined("DB_NODB") && !defined("LINK")) return false;
$fname DBTYPE."_free_result";
$r $fname($result);
return $r;
}
}

function 
db_table_exists($tablename){
 
if (defined("DB_NODB") && !defined("LINK")) return false;
$fname DBTYPE."_query";
$exists $fname("SELECT 1 FROM `$tablename` LIMIT 0");
if ($exists) return true;
return false;
}

function 
db_prefix($tablename$force=false) {
global $DB_PREFIX;

if ($force === false) {
$special_prefixes = array();

// The following file should be used to override or modify the
// special_prefixes array to be correct for your site.  Do NOT
// do this unles you know EXACTLY what this means to you, your
// game, your county, your state, your nation, your planet and
// your universe!
if (file_exists("prefixes.php")) require_once("prefixes.php");

$prefix $DB_PREFIX;
if (isset($special_prefixes[$tablename])) {
$prefix $special_prefixes[$tablename];
}
} else {
$prefix $force;
}
return $prefix $tablename;
}
?>
10  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: What files were modified in version 1.1.2 bugfixes 2017, Aeolus? on: April 10, 2018, 01:46:00 PM
Where would i find said mysql_ functions

Code:
<?php
// addnews ready
// translator ready
// mail ready
require_once("lib/errorhandling.php");
require_once(
"lib/datacache.php");

define('DBTYPE',"mysqli_proc");

$dbinfo = array();
$dbinfo['queriesthishit']=0;

function 
db_query($sql$die=true){
 
if (defined("DB_NODB") && !defined("LINK")) return array();
global $session,$dbinfo;
$dbinfo['queriesthishit']++;
$fname DBTYPE."_query";
$starttime getmicrotime();
$r $fname($sql);

if (!$r && $die === true) {
  if (defined("IS_INSTALLER")){
  return array();
}else{
if ($session['user']['superuser'] & SU_DEVELOPER || 1){
require_once("lib/show_backtrace.php");
die(
"<pre>".HTMLEntities($sql)."</pre>"
.db_error(LINK)
.show_backtrace()
);
}else{
die("A most bogus error has occurred.  I apologise, but the page you were trying to access is broken.  Please use your browser's back button and try again.");
}
}
}
$endtime getmicrotime();
if ($endtime $starttime >= 0.25 && ($session['user']['superuser'] & SU_DEBUG_OUTPUT)){
$s trim($sql);
if (strlen($s) > 800$s substr($s,0,400)." ... ".substr($s,strlen($s)-400);
debug("Slow Query (".round($endtime-$starttime,2)."s): ".(HTMLEntities($s))."`n");
}
unset($dbinfo['affected_rows']);
$dbinfo['affected_rows']=db_affected_rows();
return $r;
}

//& at the start returns a reference to the data array.
//since it's possible this array is large, we'll save ourselves
//the overhead of duplicating the array, then destroying the old
//one by returning a reference instead.
function &db_query_cached($sql,$name,$duration=60){
//this function takes advantage of the data caching library to make
//all of the other db_functions act just like MySQL queries but rely
//instead on disk cached data.
//if (getsetting("usedatacache", 0) == 1) debug("DataCache: $name");
global $dbinfo;
$data datacache($name,$duration);
if (is_array($data)){
reset($data);
$dbinfo['affected_rows']=-1;
return $data;
}else{
$result db_query($sql);
$data = array();
for ($i=0;$i<db_num_rows($result);$i++){
$data[$i] = db_fetch_assoc($result);
}
updatedatacache($name,$data);
reset($data);
return $data;
}
}

if (
file_exists("lib/dbremote.php")) {
require_once("lib/dbremote.php");
}

function 
db_error($link=false){
$fname DBTYPE."_error";
if ($link!==false)
$r = @$fname($link);
else
$r = @$fname();
 
if ($r=="" && defined("DB_NODB")) return "The database connection was never established";
return $r;
}

function 
db_fetch_assoc(&$result){
if (is_array($result)){
//cached data
if (list($key,$val)=each($result))
return $val;
else
return false;
}else{
$fname DBTYPE."_fetch_assoc";
$r $fname($result);
return $r;
}
}

function 
db_insert_id(){
 
if (defined("DB_NODB") && !defined("LINK")) return -1;
$fname DBTYPE."_insert_id";
$r $fname();
return $r;
}

function 
db_num_rows($result){
if (is_array($result)){
return count($result);
}else{
  if (defined("DB_NODB") && !defined("LINK")) return 0;
$fname DBTYPE."_num_rows";
$r = @$fname($result); //Whyfor turn off error reporting here?
return $r;
}
}

function 
db_affected_rows($link=false){
global $dbinfo;
if (isset($dbinfo['affected_rows'])) {
return $dbinfo['affected_rows'];
}
 
if (defined("DB_NODB") && !defined("LINK")) return 0;
$fname DBTYPE."_affected_rows";
if ($link===false) {
$r $fname();
}else{
$r $fname($link);
}
return $r;
}

function 
db_pconnect($host,$user,$pass){
$fname DBTYPE."_pconnect";
$r $fname($host,$user,$pass);
return $r;
}

function 
db_connect($host,$user,$pass){
$fname DBTYPE."_connect";
$r $fname($host,$user,$pass);
return $r;
}

function 
db_get_server_version()
{
$fname DBTYPE."_get_server_info";
$r $fname();
return $r;
}

function 
db_select_db($dbname){
$fname DBTYPE."_select_db";
$r $fname($dbname);
return $r;
}
function 
db_free_result($result){
if (is_array($result)){
//cached data
unset($result);
}else{
  if (defined("DB_NODB") && !defined("LINK")) return false;
$fname DBTYPE."_free_result";
$r $fname($result);
return $r;
}
}

function 
db_table_exists($tablename){
 
if (defined("DB_NODB") && !defined("LINK")) return false;
$fname DBTYPE."_query";
$exists $fname("SELECT 1 FROM `$tablename` LIMIT 0");
if ($exists) return true;
return false;
}

function 
db_prefix($tablename$force=false) {
global $DB_PREFIX;

if ($force === false) {
$special_prefixes = array();

// The following file should be used to override or modify the
// special_prefixes array to be correct for your site.  Do NOT
// do this unles you know EXACTLY what this means to you, your
// game, your county, your state, your nation, your planet and
// your universe!
if (file_exists("prefixes.php")) require_once("prefixes.php");

$prefix $DB_PREFIX;
if (isset($special_prefixes[$tablename])) {
$prefix $special_prefixes[$tablename];
}
} else {
$prefix $force;
}
return $prefix $tablename;
}
?>
11  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Installing error on 1.0.6 on: April 09, 2018, 05:56:48 PM
Quote
"Unsupported" typically means that yes, it's unsupported and there's little help for it.

What editors won't work with it? I recommend using the updated code, and then adapting those editors to work with it. It's better to use the correct system and make a few small changes, then to use an outdated system that is weak on its security just so a module or two will work.

Completely understand your point aeolus, but due to my limited(non existent) coding skills i do rely on modules and wizards to be able to convert my ideas into aplicable game ideas, the module in question are mana specialties by thanatos, although aelias specialties are quite superior mechanical wise they are also much more complex and harder to customise what i'm aiming for is  a good illuison of specialty mastery or progress , while looking around through the threads i read something about the modules who create DB tables, seem to conflict a bit on 1.1.2, so i tried to install 1.0.6 wich i remember worked with it flawlessly a few years ago


Quote
OK...let me ask a few questions I know are gonna get asked that may help to help you?

1. What version of PHP are you using, and what version of MySQL?  You should find this in the Control Panel on your server.

2. What step in the install process do you have this problem?

3. did you upload a database to your server before you started the install?  It is my understanding you must first upload a database, even a rudimentary one.

4. do you have a file on your server called db_connect.php?  If so, delete it and re-run the install.  The install should create this file FOR YOU...so you don't want it there when you start the install (this usually hangs you up like on Step 8 if I recall it correctly)

At some point along later versions of PHP I know that the Mysql_Connect needs to be changed to db_connect (I am sure I have seen this floating around here somewhere) - so it's helpful to peoplke if it is known what version of PHP your server is running.

1- PHP 7.1,
database server to MariaDB 10.2
and apache to version 2.4.

2-Straight of the bat once i click game installer that error pops out

3-Did not upload any db, created one from scratch for the server test

4-Answer number 3


12  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Installing error on 1.0.6 on: April 07, 2018, 10:19:48 AM
Fatal error: Uncaught Error: Call to undefined function mysqli_proc_connect() in /home/vhosts/crystaltales.eu5.org/lib/dbwrapper.php:144 Stack trace: #0 /home/vhosts/crystaltales.eu5.org/common.php(124): db_connect(NULL, NULL, NULL) #1 /home/vhosts/crystaltales.eu5.org/installer.php(13): require_once('/home/vhosts/cr...') #2 {main} thrown in /home/vhosts/crystaltales.eu5.org/lib/dbwrapper.php on line 144

Hello, there first of all i know that i shouldn't even be installing an older unsuported version of the game, but the wizards/editors i wanna use don't seem compatible with the newest version of lotgd, i would like to request some help fixing the instalation errors, if anyone would be so kind to help me T.T
13  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Race Creator v1.0.0 (Beta) on: February 09, 2016, 06:35:03 PM
Thank you so very much its working perfectly now
14  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Race Creator v1.0.0 (Beta) on: February 09, 2016, 08:27:08 AM
I did check that, when i add an alingment condition the race
It ddosent check the alingment properly or something also i noticed alot of similarities between the mount pre req and this race one i wonder how hard would it be to adapt the old specialty editor to something
with  this interface
http://dragonprime.net/index.php?topic=2922.30

15  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Race Creator v1.0.0 (Beta) on: February 05, 2016, 02:12:27 PM
Sorry for the necro the alingment pre requesite makes races unacessible
Pages: [1] 2 3 ... 7

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