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

  Show Posts
Pages: 1 ... 6 7 [8] 9 10 11
106  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: New Module - Miyagi's Topiary on: July 10, 2017, 03:52:36 PM
As per DragonPrime instructions, the file was attached to the topic in the Sunmissions thread, this being the discussion thread.  I assume eventually, they will put a download link here.  If you like I could send you the file.
107  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: July 09, 2017, 12:55:06 PM
OK...got me.   I always called them ellipses.  I dunno.  I never knew what the heck you called them, really.  LOL
108  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Village module: Retsac the Dispeller on: July 08, 2017, 10:03:51 PM
Nice Module.  I am using it on 1.1.0 - the color codes k and m do not work on 1.1.0 so I made changes in the coding of the module to replace them with color codes that do work on 1.1.0 - otherwise, everything is as downloaded from here and it works on 1.1.0 in case anyone was interested.

I did make a few other changes that seemed to make sense to me.  I blocked navs to remove buffs listed "Unknown" - seems to me that if Retsac can't tell what the buff actually is...how could he remove it?  I also changed it so that "Unknwn" ones would not show up in the text body.

Part of the reason for this is that it was trying to make it possible to remove the "Elite Hindrance" buff (which listed as Unknown - I figured out what it was by hovering over the link to see what it linked to)...I do not want players to be able to remove Elite Hindrance...it's there for a reason!!

Two other Unknowns were Clanbuff2  and Clanbuff 3.  These go to the Clan Buffs.  Clan Aura still shows up and could be removed in my coding at the moment...why you'd want to do that...could not say.  Seems to me you'd just leave your clan...right??

Oneotherthing that happened, which Ihave not yet been able to address (maybe someone can) is the "marriage-married" shows in the list as "Array" rather than as Spouse's Love.  I took it out of the Navs...again,if you wanted to remove that, why not get a divorce??  But it still shows in the text body...and I would like for it not to do that.

That or maybe a comment about "Probably easier if you just get a divorce..."

Mostly a good solid module that is very useful for getting rid of lousy buffs.

One other thing...I have a buff in my own system...attached to a  Mystical Shop Item...which it judges to be "terrible" - but it really isn't.  There are tradeoffs made with that particular buff.  Your defense goes down, and attack goes up...but monster attack also goes up,  because the item angers the monsters.  Your attack goes up more than the monster.  Also...you get an attack point boost from the item.

So, overall, I think it is a well-balanced buff...you get more benefit than harm...yet this module calls it "terrible"  Just a minor complaint there...no real biggie.

Anyone of my players that ever asks about it I will explain it to them, and then they can decide for themselves.
109  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / New Module - Miyagi's Topiary on: July 08, 2017, 02:44:59 PM
OK, so this is a new module I did that I have wanted to do for a long time.  You may have guessed it is a nod to The Karate Kid.

So, basically, I gutted Red Yates' Pumpkin Carving Module to do this...and so credit is given, though mine has other things you can do - so I did add some depth to this thing.

In this module, you can trim a Bonsai tree for a reward and notice in the village, just like the Pumpkin module.  However...if you successfully trim a Bonsai tree...there is a randomizer that determines the shape your topiary tree has taken, it could be a lion, tiger, monkey, swan or dragon.  And the town announcement will tell what shape the tree is as well as who won.

Additionally, just like in The Karate Kid...you can actually try to catch a fly in chopsticks!!  Remember, man who can catch fly in chopsticks can do anything!  in this case, man (or woman) who can catch fly in chopsticks wins ten gems.  You do have a one in five thousand chance of success at catching the fly....Beginner's Luck!! LOL

Enjoy it.  It is tested and works on 1.1.0 - no guarantees about other versions, but i see no reason why it should not work on any 1.x.x version.

Link to Submission thread here: http://dragonprime.net/index.php?topic=12817.msg107021;topicseen#new
110  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Day Randomizer Does Not Work on: July 07, 2017, 07:07:40 PM
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1132

I tried this.  I set it for max and min to both be 8 days per day, in other words, three-hour days...my system is currently set at 4 hour days, so 6 days per day.

This thing just caused a 6 hour day and it shouldn't have.

I set it for the max and minimum to be the same length and to always randomize.  That should have resulted in always getting a three hour game day, and eight game days in a day, but it just gave me a six hour gameday.

Module deactivated for now since it does not give me what I wanted.  DaveS...got an answer on this, since this is your module??

P.S. i am running 1.1.0
111  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: July 07, 2017, 08:27:45 AM
Yeah sorry Aeolus. </offtopic>

Don't be.  This was more my fault.
If Admins want to move these to another thread, it won't hurt my feelings any.
112  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: July 06, 2017, 08:50:31 PM
0.97/0.98 were very much hands on with no plug and play modules. You wanted nav links? You had to add them to the code to link to the other file. So people who run those versions will have made any changes to keep them running. Smiley

OK.  But why would 1.1.0 ever quit working?  Seriously...it might not be supported by DP, but it still DOES WORK...
I ask to learn.  There is a site far more popular than mine that uses 1.1.0 - and there is also one about as popular as mine currently, thanks to my long absence...that uses 1.1.1 and bot howdy does he have things way screwed up....I like the guy, he's nice and everything, but he has some weird stuff going on that make no sense...text showing up in places where it makes no sense...etc.
113  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: July 06, 2017, 08:47:12 PM
http://php.net/manual/en/language.types.string.php

Have a quick gander at this page to show/explain the differences between single and double quotes. Smiley

I see, says the blind girl to the deaf dog!!

So it prevents escape on special characters if you wrap with ellipses!!  And wrapping in single ' versus double " also prevents escape on special characters.

Now I never knew that.

That might explain why I had the grand=royal biatch doing some things with my Forest Guild module...which I DID manage to get working...but boy howdy, I have a complex mother of a boolean argument and six prefs set up that tell it where in the module that you are so that the wrong text doesn't show up in the wrong place!!

See what I mean about being a sloppy coder and a demented one at that...that finds demented ways of solving problems when simpler solutions exist...except that I don't know about them...LOL!!
114  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: July 06, 2017, 06:32:29 PM
Yes, that's perfectly fine. The curly brackets as I like to call them hold the session variable name together as it has keys, without them you get an error.

if you want to, you can change it to,
Code:
<?php
$location 
$session['user']['location'];
page_header("Wraith's $location House of Spanking");


Smiley

okay...well I never before saw $session['user']['xvariable'] held together with ellipses instead of parenths, so I thought it was an error.  If it works it works.

Sometimes, I get coding things and something works and I don't understand why, but I say to myself, the hell with it, it works so who cares...LOL
115  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: July 06, 2017, 06:30:31 PM
I'm actually surprised that v1.1.0 runs, there have been so many depreciated php functions that if you tried to install the unmodded v1.1.2, it just gives errors. Smiley

In the grotto, if you have the raw sql/php options, go to the php box and enter,

Code:
<?php
phpinfo
();

PHPMyadmin is just a free web based interface to allow for easy access to the sql database.

Quote
I am a pretty poor intermediate level coder

We all started somewhere, and the more you look through the LotGD files/modules, the more you'll see the struction and common function calls and understand them. All the modules basically follow the same layout.

I haven't coded in years and even when I did I'd only class myself as acceptable. I've no idea how classes work. Cheesy

That is how I learned what coding I did.

I started off with the Valhalla Ten Pack...that one is mine...originally, I was Kalisiin here, but certain things have changed in my life hence the new handle.
Anyway, I started off reverse=engineering other people's stuff...which got me in trouble at first as I did not understand proper crediting, but that got fixed.

Anyway...I just started with a module that worked and then messed ariund with it till it did what I wanted it to.  I have a module on my site called The Tardis...which gives mew days...believe it or not that started as Crazy Audrey, LOL!!  Of course, the final looks and functions nothing like Crazy Audrey anymore.

Over time, I got a bit better at this.

Forest Guild...a unique module I recently coded, which I have made reference to before...is the very first module I ever coded from scratch...and with absolutely no help of any kind from anyone.  I had never before done that.

But it is still probabky twice as many lines as it needs to be, but I am just not all that confident with more advanced coding techniques.

There are sites still running 0.97 and 0.98 so why would you be surprised that 1.1.0 still works?  It may not be much supported by DP anymore but it does work.

I'll look for that thing you mentioned and see if I can find out what version of pho and so on I am using, I am probably running ancient stuff, though.  I'm just more comfortable coding in this because this is what I learned yaknow??
116  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Item system on: July 06, 2017, 06:23:36 PM
The basic item shop by default only buys/sells items from the Loot category.

Try these changes at your own peril!
Code:
<?php
//
//-----[ FIND (line 133) ]-----
//
shopnav("runmodule.php?module=basicitemshop&op=sell""Loot"true$session['user']['acctid'], true);

//
//-----[ REPLACE WITH ]-----
//
// Note that the shopnav() function checks for an array so this should work.
//
shopnav("runmodule.php?module=basicitemshop&op=sell", array("Loot","cat2_name","cat3_name","etc"), true$session['user']['acctid'], true);



//
//-----[ FIND (line 144) ]-----
//
$inventory get_inventory($session['user']['acctid'], 0"Loot");
while (
$item db_fetch_assoc($inventory)) {
if ($item['sellable'] == false) continue;
$quantity += $item['quantity'];
$goldvalue += $item['sellvaluegold'] * $item['quantity'];
$gemvalue += $item['sellvaluegems'] * $item['quantity'];
}

//
//-----[ REPLACE WITH ]-----
//
// Note that the get_inventory() function wont accept an array. :(
//
$categories = array('Loot','Cat2_name','Cat3_name','etc');
foreach( 
$categories as $catname )
{
$inventory get_inventory($session['user']['acctid'], 0$catname);
while( $item db_fetch_assoc($inventory) )
{
if( $item['sellable'] == false ) continue;
$quantity += $item['quantity'];
$goldvalue += $item['sellvaluegold'] * $item['quantity'];
$gemvalue += $item['sellvaluegems'] * $item['quantity'];
}
}

//
//-----[ FIND (line 233) ]-----
//
$sql "SELECT itemid FROM ".db_prefix('item')." WHERE class = 'Loot' AND sellable = 1";

//
//-----[ REPLACE WITH ]-----
//
$categories = array('Loot','Cat2_name','Cat3_name','etc');
$classes "IN (".join(","$categories).")";
$sql "SELECT itemid FROM ".db_prefix('item')." WHERE class $classes AND sellable = 1";


If that works, you could think about creating a setting to put the categories in, that way they wouldn't be hard coded to the file. Smiley

Well, if I am gonna do that, I might as well start from a place where I am defining settings as categories and plug those in, no??

I assume if there are more categories in the code than a specific admin out in settings it would just return a "" value and no biggie, right?

If I undertake this and it works, I'll release it here, with credit.
117  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: July 06, 2017, 05:06:54 PM
Thing is, there really shouldn't be any major difference between 1.1.0 and 1.1.1 and 1.1.2 Changing the last digit should only mean bug fixes and possibly code changes due to mysql/php function changes.

There are detailed change logs somewhere that show exactly what's changed between versions. Can't seem to find them though.

What versions of php/mysql is your server running TGTarheel?

TBH, I do not know, it has been a while since I checked.  My site has been dormant for a while, I am revamping and revising things.

I kinda had personal issues that caused me to drop out of the LOTGD world for a while...and then I got back into it and decided to write a new module, based on an unrleased moduke I saw on someone else's site that I liked and they would not give me.  So - knowing how things worked, I was able to figure out how that module was done, and then code my own...and I improved and expanded on it, so sorta glad they didn't just give me the module I had wanted.  I did credit the idea from the unreleased module in my own module, and I also am mot releasing it here...primarily becaue mine relies heavily on the Item System, my particular alternate currency, and a couple of other unreleased modukes on my site that it interacts with...so it would not be useful on anyone else's site.

SO...that got me kinda really back into things and revamping and revising my site...that is how all this query about color codes came up.  So...the short answer is...I have to check.

I have a cheap server from HostGator, so I suspect I am not running the latest greatest of anything.

Seeing as I am running 1.1.0 I would say I was at least using PHP 5 - but beyond that, no real idea.  I would have to check on that.  As to MySQL...my Control Panel calls it PHPMyAdmin, if that tells you anything.

To be perfectly honest...I am a pretty poor intermediate level coder, most of you all would probably laugh at the stuff I do.  You're probably all way better than I am.
118  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: July 06, 2017, 05:00:36 PM
Nothing wrong with line 152 here. Can you post the code?

OK, this is what I have when I download...

Code:
function wraiths_run()
{
global $session;

if( isset(httpget('reset')) && httpget('reset') == 'yes' )
{
set_module_pref('gender', 0);
}

if( get_module_setting('inallloc') == 1 )
{
page_header("Wraith's {$session['user']['location']} House of Spanking");

The last line in my code there...is the line where the error is.  That is line 152.

You used ellipses to enclose $session['user']['location'] instead of parenths.  It is barely visible, but it is there.
119  Core Code Development Discussions / Core Development Discussion / Re: LotGD Rewrite (Daenerys) Weekly Updates on: July 06, 2017, 03:05:42 PM
Daenerys (LotGD Rewrite) Not-So-Weekly Update 6/28/2016

Progress
@eliwood's finished a basic battle system, complete with buffs. He also put up a basic web version of the game, complete with GraphQL API for headless use. There's not much there yet, but we're making progress here.

I built a sample crate and wrote documentation on how the pieces of the system fit together. I also built a command line tool, daenerys, to help with administrative tasks, like installing new modules.

Heroes
No heroes this time around Sad. Still hoping for more community engagement. We've identified a number of starter tasks, some of which can be completed even by programming n00bs: https://github.com/lotgd/core/issues

Next Month's Goals
Get a basic game loop running inside the web interface, allowing a logged-in user to navigate through a world.

As always, you can check out the state of the world on github: http://github.com/lotgd/core

Humm, just had a look anf the stuff "easy for n00bs" does not seem easy.  If you come across something SUPER-EASY let me know.  I only know enough of this stuff to be dangerous.

I'm better at coding modules than at coding core stuff anyway.
120  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: July 06, 2017, 02:59:40 PM
The problem is this line,
Code:
<?php
if( isset(httpget('reset')) && httpget('reset') == 'yes' )

It doesn't like isset() for some reason, works fine without it,

Code:
<?php
if( httpget('reset') && httpget('reset') == 'yes' )

I'm tweaking the module more now, the quick fix reset allows the player to pick which sex again, but not the option to be spanker or spankee due to the way I wrote it. xD

Keep m eposted.  Did ya fix the line 152 with the ellipses where parenths ought to be??
Pages: 1 ... 6 7 [8] 9 10 11

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