DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 20, 2017, 11:31:18 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3 ... 10
 1 
 on: July 17, 2017, 10:23:17 PM 
Started by Apollon - Last post by TGTarheel
Yes, but it shouldn't matter if it only appears in one city or them all, the new name needs to be saved when it's changed. Smiley
I guess.  I do not really know since I do not know what the original coder's thought was on what they were trying to accomplish.  I am really, at best, an intermediate-level coder who knows just enough to be truly dangerous.

Which is also why I am not about to try to undertake a serious core code alteration such as was discussed on a different thread.  I come up with very twisted and demented solutions to problems but I can REALLY cause problems in the process.

LOL...the last code code update I did...in pageparts...caused everyone in The Shades to see who was online (like you see on the login screen_ instead of thier stats...and I do not know how the heck I did it!!

Fortunately, I had backed everything uop and went back to the beginning and re-did what I was trying to do and it worked.  So I have no idea where I went wrong, but everything works like I wanted no on that front...so I try prtty hard not to fool too much with core code anymore.

Although I am twisted enough to have figured out how to put Stables and a bank in the Shades (and Valhalla) and also how to have mounts available ONLY there!!

So far as I know, my site is the only one that does this.  You have mounts you can ONLY get when dead and then bring them back to the world of the living with you.

SO...like I said, I am intermediate at best, I oull off some cool stuff once in a while, but I am very dangerous too.

 2 
 on: July 17, 2017, 10:17:35 PM 
Started by TGTarheel - Last post by TGTarheel
True, dat, Mark.

I am not about to undertake that momentuous a core code editing.  If I can accommodate GLB and T...I'm pretty good there for now.  I'll let better minds than mine deal with the other stuff.

I seem to have encountered an unanticipated problem on the Abigail module.  I got a player trapped on a error with abigail...the player I sent a gift to...it was coming back with a stack about the syntax for calling from the database not being right.

I temporarily took out the module.  I think I got at the problem, and if I did I will upload a new copy.

The problem now, is...my player is stranded in la-la land...and I am darned if I can get them back...now it hangs on Lonny's Who's Here module, so that gave me an idea where to look...

And in the MySQL database, this players return location, sure enough...is null.

So I edited that in the database for the moment to be news.php and fixed broken navs for the player.  Waiting for them to log back in and try to see if that broke them out.

Only the mandatory system player who is a horrible gelatinous blob...has a null location.  I don't think Lonny Luberts ever anticpated my particulr problem, and Who's Here was trying to look in a null location...is my guess as to the reason for the new stack my stuck player got.

At least it had the virtue of no other player having that same situation!

So, once I get that player back...IF I get them back...I can re-try the new Abigail module again.  I saw it only from the giver side when I uploaded it here first.

But it caused a problem on the recipient side...and this person uses a screenreader which makes this a ton of fun for me to figure out.

What I figured out...on the giver side...was that there was NO NEED to call the database again to get the player partner's name for the newday hook, since that info was already stored in the player pref I built into the thing to make the rest of it work...so I re=wrote the code in the newday hook to just call the existing pref instead of calling the database again...that should fix the pronlem, and then nobody gets stuck and thrown into limbo...at least that is the hope.

So...for right now....DO NOT DOWNLOAD AND INSTALL MY ABIGAIL MODULE!!!

 3 
 on: July 17, 2017, 09:20:45 AM 
Started by TGTarheel - Last post by MarcTheSlayer
Quote
Yes, but how to deal with all those modules that assume a binary gender system?

You'd just have to edit every single one of them. One you figure out the correct code it's just a case of copy and paste. Smiley

To do what you're wanting, it may be easier to edit the core code to allow for more than 2 sexes. It's your game, hack away. Cheesy

For example on the registration form it asks you to pick a sex and after each choice you could have the pronouns in brackets.

You might have to draw the line somewhere, after all this is a fantasy game where you're supposed to become someone other than yourself. Smiley

 4 
 on: July 17, 2017, 12:16:21 AM 
Started by TGTarheel - Last post by TGTarheel
Yes, but how to deal with all those modules that assume a binary gender system?

You'd not believe how much I had to fuss with Abigail to make her work right.

I had to check if married or unmarried.  If unmarried, then we used the player's gender and assumed opposite-gender interest...since there is no way in the original core to specify otherwise.

With married couple's, it checks now for the gender of the player's partner...regarless of what gender the player is...and offers gifts for that gender.  The only reason it checks for a married player's gender is the "Sir/Madam" part of this.

But I got it all working.  Like I said in my submission thread, I had to break out the allprefs and just use traditional prefs...allprefs are just difficult for me to work with.  And, probably, my coding is a bit sloppy, doubtless someone more experienced than me could have done it better, but nobody else did.

 5 
 on: July 16, 2017, 03:54:21 PM 
Started by TGTarheel - Last post by MarcTheSlayer
The genders can be easily dealt with. A module to add a dropdown menu of all the different types to the registration form. This would be displayed on the player's bio page for role playing purposes. Smiley

 6 
 on: July 16, 2017, 03:40:53 PM 
Started by Apollon - Last post by MarcTheSlayer
Yes, but it shouldn't matter if it only appears in one city or them all, the new name needs to be saved when it's changed. Smiley

 7 
 on: July 16, 2017, 02:18:16 PM 
Started by Apollon - Last post by TGTarheel
Unless I'm missing something, I don't think it's required and that IF statement can be removed.

If the villagename has been changed then the old name needs to be updated. Smiley

It should be calling for the pref for allcities.  Meaning that this module could show in ALL cities...or only ONE city.

I think that is why it is there.  I have the module installed on my system nw and it has never tripped.

I think it is because the line I mentioned is not in there...i will try putting it in and see what happens.

This module, unless I am mistaken...is meant to be confirguarble to show in all cities...or an admin-specified city ONLY.

 8 
 on: July 16, 2017, 12:30:35 PM 
Started by Apollon - Last post by MarcTheSlayer
Unless I'm missing something, I don't think it's required and that IF statement can be removed.

If the villagename has been changed then the old name needs to be updated. Smiley

 9 
 on: July 16, 2017, 10:00:07 AM 
Started by TGTarheel - Last post by TGTarheel
Ok...so I riped apart the original Abigail...all creit to the original authors and tweakers before me are maintained intact, only the addition of my own name as the coder who did the same-gender tweak.

This has been fully tested out now...it works for unmarried people, (it assumes opposite-gender for unmarried people)

For married people, it works fr same-gender and opposite-gender couples now.  It gets a bit better though:

I ravaged the old allprefs this thing used and did traditional prefs (allprefs drive me batty anyway)  But now one could do additional refs for more than just two genders if they wanted to...the basic framework is there.

I tested this on my own server with runs 1.1.0 - but I see no reason why it would not work with any 1.x.x version.

I fully tested it...
a female same-sex couple is addressed corrctly as Madam, and are offered female gifts for their someone special
a male same-sex couple is properly addressed as Sir, and is offered male gifts for their somoene special.

and it works with opposite-gender cues, too.

a female giving to a male is properly addressed as Madam, and is offered gifts for a man...and
a male giving to a female is properly addressed as Sir, and is offered gifts for a woman.

So it is fully tested.  My codiing is probably a bit soppy, but it works, and fans of allprefs will hate me fr ravaging the prefs on this to make them traditional prefs, but oh, well...Ii got it to do what nobody else has!!

Abigai is no longer narrow-minded, she is now fully affirming of same-gender and opposite-gender couples...and the framework now also exists where third and more genders could be added...i guess you'd want a set of gifts that were gender-neutral, but I will leave that to someone who actually has more than two genders on their server....I am not brave enough to undertake that dee of a core edit!!

Here is the file!


 10 
 on: July 15, 2017, 11:19:45 PM 
Started by Apollon - Last post by TGTarheel
Hi,

Code:
<?php
case 
"changesetting":
if ($allowall == 1){
        
if ($args['setting'] == "villagename") {
            
if ($args['old'] == get_module_setting("wapatloc")) {
                
set_module_setting("wapatloc"$args['new']);
            
}
        
}
    
}
    
break;

Where does $allowall come from?

That's a good question.  I missed this, too.
Looking over the coding, I think we need to add a line

Between these two lines (in my file they are line 56 and 57)
Code:
case "changesetting":
if ($allowall == 1){

We need to add this:

Code:
$allowall = get_module_setting("allcities");

Great catch, Mark!


Pages: [1] 2 3 ... 10

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