View Single Post
  #13  
Old 04-30-2011, 01:07 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,391
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Quote:
Originally Posted by Irion View Post
Okay, so I tried this out since it was exactly what I was looking for.

First of all, I get "templates/icons/delete.gif" as the adopt image on level up and on myadopts.php?act=manage/stats but they show up on myadopts.php
I'm guessing this is due to the modification in the getcurrentimage function. I'll be having a look over it to learn how it's done.

I've had a go at adding an adoptable and read the instructions|FAQ but it's a little confusing and doesn't seem to be working, so I'm humbly asking for some clarification.
Here's what I done and perhaps you can tell me where I'm going wrong:

1. I created a new adoptable through admin.php, enabled the alternate images and filled in [Start using the alternate outcome at level number:] as 0 while the alternate outcome chance I put as 2. Though these number don't really matter and are just satisfying checks, right?

2. I added another level to the adopt I just made (Which was an egg by the way) through admin.php. This was level 1 and I added (one of) the alt image(s) for this level while I was at it; I also input 1 as the required number of clicks- for the sake of testing.

3. Next, it was my understanding that I then go to maiadmin.php and select "Add Alternate Image". I filled out the form as follows:

- Uploaded Image: I selected the same alt image as I used in the creation of level 1.
- Select Adopt: Selected the adopt I'd made, of course (I only have one in the database).
- Entry Level: This was a tad confusing despite your best efforts at explaining. My understanding at first was that it was supposed to be an integer that relates to the level (or stage) that the non-alt is at if it's the first in the alt line. So I input 1 as my value (I then tried again later with "yes" and got no different results)
- Replace Level: I thought this was self explanatory and was asking which level this alt will relate to in the level table. So I input 1.
- Path: I believe I understand this... I input 2 because it would be the 2nd path that that can start at.
- Subpath: I left this blank for the time being
- Select Adopt: Well I believe this was supposed to be called "Method" - and I chose "Random Method" from the drop down.
- Data: I input 2 to represent a 1 in 2 chance.

I then adopted 20 of my adoptable and proceeded to level them into the next stage. None of them returned as the alt.
I then created another alt image with maiadmin.php and used my 3rd alt (I want the egg to hatch into 3 different things- with one of them being significantly rarer). I input 3 for Path while keeping all the other variables the same.
I adopted another 20 and proceeded to level them but I still got the standard one.

Am I misunderstanding something? I also tried selecting as the alt image nothing when creating level 1 in admin.php

Last note: The "return" link on maiadmin.php?do=addnew takes you to www.$domain/'maiadmin.php/'
Nothing that you've explained seems to be an issue, but if you could please check out your database, and even take screenshots of the tables related to the adoptables and the alternates to see if there is any information missing or weird there. That's where I usually tend to start when attempting a troubleshoot.

Quote:
Originally Posted by Beaux View Post
I'm having the same issue with everything turning out standard, but I also get this error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /inc/functions.php on line 460

when I adopt or level a creature.

Not sure what to make of it since I'm still a newb to PHP. I've looked at both the original and modified codes and they're the same aside from the rows underneath...

Great script, though. I'll be in heaven once I can get it to work. :D
Would you mind posting lines 400-500 in your functions.php or just the whole thing. The problem may also be the lack of compatibility with the mysql_num_rows thing.

It's a big script which is why there are so many bugs and glitches in it. I will be working on an updated version soon that will simplify things quite a bit and also hopefully work more reliably.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote