Mys 1.3.4 Alchemy Mod

Forum
Last Post
Threads / Messages
I am glad the mod is working for everyone, minus the headache of installation. I did beta-test the mod extensively before releasing it, so guess it helps somehow. I aint quite sure why auto-installer aint working for some of you, I will see if theres anything I can do.
 
dont worry HOF, for me it was good that the installer dint work ^^ now i know how to insert and create tables XD. and like you said in your first post ._O it was a pain to add them, specially for someone like me that knows too little about coding and creating/inserting/adding tables to a database >_> But for the same reason i decided to add the codes that worked for me to install manually the tables to the database, maybe it will help those who are like me =)

By the way for me the installer only showed a blank page and nothing else... maybe because i used the solution to remove the warnings that appeared in the admin cp...
 
I am also having trouble installing this mod ^_^''

This is the warning:

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/ycadopts/public_html/classes/class_initializer.php on line 97

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/ycadopts/public_html/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ycadopts/public_html/classes/class_initializer.php on line 97

I tried the installation thing with the tables that kristhasirah said but it didn't work.. not sure what to do XD Help? ^_^
 
Are you using Mys v1.3.4? If so, take a screenshot of the folder structure as it appears on your FTP client and I will see what the error may be.
 
Yes I do use the latest version, but what do you mean by 'folder structure'? Do you mean just snapshot an image of the folders? Because I can do that but I'm confused by what you mean XD
 
i tested the codes again and they are working, i even created a new database just for that, but if you still have troubles using the codes i posted for installing the tables manually, try installing them 1 by 1 , because if you try to install them all at the same time you must add a: ; at the end of each code
example: CREATE TABLE `adopts_alchemy` (alid INT NOT NULL AUTO_INCREMENT PRIMARY KEY, item INT DEFAULT 0, item2 INT DEFAULT 0, newitem INT DEFAULT 0, chance INT DEFAULT 0, recipe INT DEFAULT 0);
also remember to change the "your_database" with the name of your database
and if your tables have a different "prefix" and not "adopts_" you must change that too
 
Oh, OK. I shall try that then! (I did them all at the same time ^_^'') I have just made a copy of my site for testing so now I won't ruin the actual one. So let's see if this works.. XD

EDIT: No... it still won't work.. I keep getting this:

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/calamit2/public_html/classes/class_initializer.php on line 97

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/calamit2/public_html/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/calamit2/public_html/classes/class_initializer.php on line 97

I don't know if it'll help or not, but here is the class_initializer file:

PHP:
<?php

use \Resource\Native\Object;
use \Resource\Native\String;

/**
 * The Initializer Class, it is responsible for the basic bootstraping of the system.
 * It handles basic Loader, Registry, System Object creation, further operations are delegated to Mysidia System Class.
 * This is a final class, cannot be extended by any child classes.
 * @category Resource
 * @package Utility
 * @author Hall of Famer 
 * @copyright Mysidia Adoptables Script
 * @link http://www.mysidiaadoptables.com
 * @since 1.3.3
 * @todo Not much at this point.
 * @final
 *
 */

final class Initializer extends Object{

    /**
	 * The dir property, defines relative directory for Bootstraping process.
	 * @access private
	 * @var String
    */
	private $dir; 

    /**
	 * The uri property, stores a reference of the URI from server variables.
	 * @access private
	 * @var String
    */
    private $uri;   

	/**
     * Constructor of Initializer Class, it delegates to the method initialize() to complete the request.
     * @access public
     * @return Void
     */
    public function __construct(){
        $this->setURI();
        $this->setDir();
        $this->initialize();
    }

    /**
     * The getUri method, getter method for property $uri
     * @access public
     * @return Void
     */
    public function getUri(){
        return $this->uri;
    } 

	/**
     * The setUri method, setter method for property $uri
	 * The property is set upon Initializer object instantiation, cannot be called from external class.
     * @access private
     * @return Void
     */
    private function setUri(){
        $this->uri = $_SERVER['REQUEST_URI'];
    }   

    /**
     * The getDir method, getter method for property $dir
     * @access public
     * @return Void
     */
    public function getDir(){
        return $this->dir;
    } 

	/**
     * The setDir method, setter method for property $dir
	 * The property is set upon Initializer object instantiation, cannot be called from external class.
     * @access private
     * @return Void
     */
    private function setDir(){
        if(strpos($this->uri, "admincp") !== FALSE or strpos($this->uri, "install") !== FALSE){
            $this->dir = "../";
        }
        else $this->dir = "";
    }   

	/**
     * The initialize method, carries out the basic bootstraping steps.
	 * It opens config file first, then include basic files and instantiate important objects.
     * @access private
     * @return Void
     */
    private function initialize(){
        $config = "{$this->dir}inc/config.php";
        require $config;

        include("{$this->dir}functions/functions.php");
        include("{$this->dir}functions/functions_users.php");

        $loader = "{$this->dir}classes/class_loader.php";
        require $loader;
        $loader = new Loader($this->dir);

        $registry = Registry::getInstance();
        Registry::set(new String("loader"), $loader, TRUE, TRUE);
		
        $mysidia = new Mysidia;		
		$router = new Router($this->uri);
		$router->route();
		$dispatcher = new Dispatcher($router);
		$dispatcher->dispatch();

        $wol = new Online;
        $wol->update();
        Registry::set(new String("wol"), $wol);
    }
}
?>

Is there maybe something wrong with it? (That's what the warning seems to say... but I dunno XD)

I know I keep asking for help, but this is the only way I'll learn how to solve issues if I run into them in the future XD (Plus it's a great way of learning basic coding skills hehehe)
 
Last edited:
Are you trying to install the mod by using the installer? because your problem is like the one Abronsyth had/has when tried to run the installer.php :http://www.mysidiaadoptables.com/forum/showpost.php?p=28999&postcount=11
The codes i posted are the ones that the installer is supposed to install, so you dont need to run the installer script, just make the edits and upload the required files to make the mod work.

edit:
I did a completely manual Install, because when i tried to run the installer i got a blank page and right now is working without problems or errors.
 
Last edited:
Oooh! So i just ignore the install folder and manually install everything else? I can try that! Thanks!
 
Yes, if you used the codes i posted then you already have installed the tables you need for the mod and now just need to edit the pages and add the files, and the mod will be working without problems =)
 
Nope, it still won't work... where do you insert the table codes? Because I have tried all the files and the only one that I can find is the alchemy.php file in the install folder. But it has the install thing in it and won't work if I just put it into the public html folder...

i might just create the tables manually... do you know what I need to put in each box? (Like NULL etc.) I tried a moment ago but the silly thing kept popping up with an error (I don't know everything to put in the boxes.. what values etc.)

EDIT:

Well, i think I may be figuring it out. I am entering the table things into the manual creation thing in x10 hosting and now I am trying to get the lines to work and get the codes creating the table. But it keeps coming up with errors..

EDIT 2:

Yay! It worked! Thank you! I got it working ^_^
 
Last edited:
=D im glad that is working for you now!!!
sorry for my failed attempt of explaining how to add the codes in the database, English is not my native language, but i will add some pictures of where to add the codes in the database
 
OK XD It actually turned out it has created a blank database >.< But now that all the other boxes are gone and the only ones left are asid, name and value, I'm hoping it'll work! I am almost finished, so I'll edit this if it works or not... I'm hoping it will XD

EDIT:

Yep! It worked! :D Thanks! And you didn't do too badly with explaining, I just understand little to no coding at all XD So I am trying to learn, but I am only, like, a teenager so... XD I am attempting to pick bits up though so that I will be able to do things like this in future! (Without too much help :p)
 
Last edited:
well i made a failed attempt of tutorial for those that have no idea of how to add or create a table in the database... i was like that at first... and still have problems, so probably i will be coming back to see my failed attempt in a near future, as i usually forget how i added or edited something >_>"


this is how i add them to the database, if you are using x10hosting when you open phpmyadmin you must click the name of your database is the one down of information_schema, that way you are sure that you are adding creating and inserting the info in the correct database

the first 2 inserts are the ones i think they can give you problems, but is easy to add the values manually,
just click the the adopts_acp_hooks, wait for the table to load and click insert/insertar, it will open a new window and just add this:
first box leave it blank
2nd: Alchemy Plugin v1.3.4 by Hall of Famer
3rd: http://www.mysidiaadoptables.com/forum/showthread.php?t=4368
4th: alchemy
5th: null
For the second insert do the same: click adpts_items_functions, click insert/insertar, wait for the new window and add the following info
First box: leave it blank
2nd: recipe
3rd: no
4th: This item function defines items that acts as recipe for alchemy practices.

the other 3 are working, i tested them 3 times in a new database, but like i say make sure you have selected the database you are using for your site.

Edit:

Glad to know is now working for you ^_^ !!!
 
Last edited:
Yeah, I use x10 hosting. XD And it wouldn't insert the items into the settings database so I was lucky that it created a blank one (the adopts_alchemy_settings thing) as then it was easy to go through and add them myself by adding values XD And I'm sure the tutorial will help a few others who are stuck! :D
 
I'm having problems with the alchemy mod. I installed everything but when I try to create a new alchemy, it throws this at me after clicking submit: Database error 1146 - Table 'chibifur_chibifurs.adopts_alchemy' doesn't exist

I went through all the files and they are all configured properly.
 
Yeah. adopts is the prefix. Thought it would be a bit confusing later if I had changed it so I left it as it was.

I just tried the codes and the last one failed.
It refuses to insert contents into the adopts_alchemy_settings table.

The adopts_alchemy table is created and has the contents.
The adopts_alchemy_settings is created and has no contents.

I use x10 hosting as well.

The code to insert contents into the adopts_alchemy_settings table says this error:
#1142 - INSERT command denied to user 'chibifur'@'localhost' for table 'adopts_alchemy_settings'

Sorry if it's not clear. I'm not very good with formatting things.
 
Well, hmmm. While Google implies this is normally a permissions issue, I also had trouble using the supplied SQL commands to insert data into the table on my own server (tested just now).

So I took a look at it. I visited the database and hit SQL to create the table first -
Code:
CREATE TABLE `adopts_alchemy_settings` (asid INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name varchar(20), value varchar(40))
Then went into the table and hit SQL again to insert the data there -
Code:
INSERT INTO `adopts_alchemy_settings` (`asid`, `name`, `value`) VALUES (1, 'system', 'enabled'), (2, 'chance', 'enabled'), (3, 'recipe', 'enabled'), (4, 'cost', '500'), (5, 'license', ''), (6, 'usergroup', 'all')
help_by_kyttias-d892d6q.gif


I changed the formatting only slightly? And it seemed to help. But the order of operations I think is what really helped, rather than doing it all from the front of the database - to do it while already visiting the table. Try that with the others, too?
 
I've got it to finally do the job now. Oddly I didn't do anything different and it worked.
Alchemy is completely functional. Tested and verified.

Only a few more issues to work on like the failing gender ratio and figuring out to add an explore system with chances of getting items, pets and coins and then my site should be ready for visitors.

On a side note, How did you make that gif? It's really clever and useful o see what to do almost live.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top