DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 24, 2017, 09:28:10 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 9
1  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: Yesterday at 03:12:34 AM
Thanks, everyone for the help, then.

I just needed to have a way to control beta-testing access to new modules, one that did not grant Grotto Access, so that some players could also beta-test.

This is something I like to do after I have first assured myself that there is nothing that causes a conflict or parsing error or call stack somewhere.  Then, the next thing is to test functionality to be sure things function as intended.
2  Core Code Development Discussions / Core Development Discussion / Re: LotGD Rewrite (Daenerys) Weekly Updates on: Yesterday at 03:09:04 AM
@Nder' what kind of storytelling do you like ? darker sword and sorcery Style or rather heroic Lotr style ? Just wondering --

My own mind seems to go best towards young person faces tragedy (usually death of a parent) - is thrown into adverse situation against their will (usually a dark magic/evil situation) - suffers for years, manages to escape, begins to build new life....that is the general theme I ted to write best.  Usually the protagonist is persecuted and finds a way to rise above it (usually by kicking butt) - I like female buttkickers.

If you remember Dragon Warrior/Dragon Quest from the 1980's - 1990's, think in terms of Alena.
3  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 22, 2017, 04:37:21 AM
I've actually got a couple of modules that make it so that you can grant access to certain players, by granting access to them via UE. I've added the necessary snippets of code for it. The first one goes at the top of the module, at the end of your $info section of the module.

Code:
"prefs"=>array(
"allowed"=>"Is this player allowed into the area?,bool|0",

Then, under the cases, where you've got your village case:

Code:
case "village":
$allowed = get_module_pref("allowed");
if ($allowed == 1 && $session['user']['location'] == "InsertVillageNameHere"){
addnav("Ale Alley");
addnav("Name for Nav","runmodule.php?module=InsertnameofModulehere&loc=enter");
}


That should help. I hope.

This would make it so that you can pick and choose which players have access to the specific module you are testing.

Yes, I like it.  I see where this works.
I could then set the boolean to default 1 and re-install the module when beta-testing is done, thus keeping it in and making the ability to re-beta the thin if necessary later.

Thanks!
4  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 22, 2017, 04:32:54 AM
Code:
dohook:
$allowed_acctids = array( acct id's go here );

case "village or whatever"
if(in_array($session['user']['acctid'],$allowed_acctids))
{
addnav
}
in this case, I assume the account id's a separated by commas?
5  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 20, 2017, 01:57:52 PM
OK...I could try.

What I am actually doing...

Is setting up so that in, let's say, in the hook for village (where my modue would show up)

While it is in the testing stage, I only want it to access certain values and add the nav ONLY for those values.  Everyone else would not have the nav, thus would not stumble into what is not fully tested.

The reason why this first came up in the multi-poke thread, was because that one has setting in it where you can allow ONLY certain account ID's to use certain pokes.

I wanted to know how I would set that up within a module, as a temporary thing, so that, once fully tested, it could then be taken out and thus everyone would get the nav, see?

Now, the way I had done this in the past would be something like this:

Code:
if ($session['user']['id'] <= 10) {
addnav whatever
} else {}

That way only users with an account ID 10 or lower would see the nav.

So, without setting superuser tags on someone...how would I make a player a betatester on something...so that they could still see the nav where other players could not?

THAT is where I am trying to get.  I do not want to give someone Grotto Access just in order to allow them to beta test.  I have some longer-term players that I normally would consider for use for beta-testing, but their account ID's are all over the place and I wanted to order those players so that everything was in the same rage, so that my above coding would work.

I am being told this is not a good plan.  So what I am looking for then....is code that would allow access only to certain players...and without giving them Grotto Access.
6  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Additional Bioinfos on: September 17, 2017, 12:22:08 PM
I know it's been awhile but a player on my realm had a request I can't seem to fill and was wondering what change to this module I'd have to make for the text area to allow &hearts; to translate into ♥ like it does in the village chats.

Not sure, but if it helps, the ASCII on that is ALT + 3
Maybe you could insert something into your code to replace &hearts" with "ALT + 3" and that might do it.
7  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 15, 2017, 07:26:12 PM
Ew, you don't check access by id <= and >=, neither by adding them to an defined array or something. Never do that!

Use a flag or role that is applied to the user. That can easily achived with a module pref so you can set access per user.

How do i go about doing that then?

I like to use those when beta-testing new modules, so that the main playerbase does not stumble into what is being tested until bugs and kinks are worked out.
8  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 14, 2017, 06:57:26 AM
To make it simple: don't!

It would be possible, but there is really no reason to do so and the risk of failure - forgetting some values - is way to high. The max value of an int value in the DB is more than 2.1 billion. And if you require more (which is unlikely for accounts) you could use a (unsigned) bigint value. You should really not mess with IDs!

The only reason I ever want to, is because I assigned all my admins to the lowest numbers, and I have certain modules that can only be accessed by those account numbers.  It's easier when they all fall into the same range.
9  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Signet Sale by DaveS on: September 13, 2017, 05:07:54 PM
Since you mentioned that only 1 character should be there and he isn't, I wanted to exclude the possibility of that value being 0, thus setting the limit of the sql query to 0.

If you take away translator rights, does the character show up there? (Is this list working, like, at all?)

Code:
SELECT module_userprefs.value, module_userprefs.setting, accounts.name FROM module_userprefs, accounts WHERE acctid = userid AND modulename = "signetd5" and acctid = 1 ORDER BY setting, value

Adjust if you are using a table prefix, and set in the number of the account you'd like to show up.
Using this SQL query, you (should) will get a list of of module userprefs belonging to that account. Is in this list any setting named "frhofnum"? What is its value?

OK, you just completely lost me.
and I tried to take the translator tool and it did not show up but I assumed I would like have to go thru a whole nother kill without the tool and I can't do that, i am ding fixes on my game.  And nobody else on the site seems to want to try to do the Signets.  A pain, because they are gin and pay a ton.
But nobody seems to want to go through something they do not have the immediate solution to.

I am not quite sure, though, what you are actually asking me to do or how I go about doing it.  Seriously, i know about coding ... and just enough to be dangerous, and I do not know all this other stuff you are talking, I really am NOT very good at this stuff, actually.
10  Game Administration, Installation and Configuration / The Idea Place / Account ID on: September 13, 2017, 12:23:16 PM
Was curious, wondering if there is any way to change a player's account ID number?  Without, of course, causing them to lose everything they had accumulated?  Literally, something that would go thru the entire database and change every line pertaining to that character to a new account number?

So that, instead of being acctid 541 for example, they could be acctid 30?

I just want to condense all the unused acctid numbers?
11  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Signet Sale by DaveS on: September 13, 2017, 12:11:13 PM
Try to print the value of $pp after this line:
Code:
$pp = get_module_setting("frpp","signetd5");

OK, what does that tell me?  Let me look in the code and see what I can find.  It is a setting, so it applies to the whole module and not just to a specific character.
OK, i my settings, this is set to 35.  That is the default setting.  I see nothing in the coding that would cause it to get any other value.
12  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Signet Sale by DaveS on: September 13, 2017, 06:15:26 AM
Nothing in the snippet you showed refers to superuser flags (on first glance, anyway), so are you sure that your analysis is correct?  If you disaable the translation flag for it, does it show up in the HoF once again?

(For that matter, it wasn't clear: Is the character failing to show up in all HoF's, or just the one associated with that module?)

Looking at the value of SU_HIDE_FROM_LEADERBOARD in lib/constants.php, the most likely flag to trigger this behaviour is SU_INFINITE_DAYS; are you sure you haven't enabled that on your character?


No.  This character shows up in most HOF's...even in the other HOF for the Signets, the one that shows progress.  And only has Translator tool checked.  Since no other characters have done the  Signets yet, I do not know if anyone shows up.  But I will look in the places you mention, thanks for the hints.
13  Core Code Development Discussions / Core Development Discussion / Re: LotGD Rewrite (Daenerys) Weekly Updates on: September 13, 2017, 06:12:48 AM
Seems as if fantasy writers, plural, could be a good idea here.  I'd be willing to be in a team of writers that bounce ideas off each other and make things mesh.
Don't know about others, but sometimes the best fantasy writing comes when you are inspired to it by others, and vice versa.
14  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Test Server on: September 12, 2017, 11:51:14 AM
Got the info from my server company.

This is what they tell me

Apache: 2.2.21
PHP: 4.4.9
MySQL: 5.5.52
PostgreSQL: 8.1.23
15  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Test Server on: September 11, 2017, 01:53:39 PM
That was what I thought, that phpBB was a bulletin board.
As to Google, not much help in determining where I find out what version of PHP I am running.

I give up I will just call my damn hosting company and ask them.

I can't find it.

There ARE people that Google does not help much.  I am NOT a webinar sort of person, I learn by being SHOWN and then by DOING.
All the manuals and webinars in the world won't teach me squat.  Not all of us are geared to learn things the same way, just sayin.

Attacking people who are telling you how to do it, that's not going to help you. Especially when someone told you how to run one function to find out what you want.

I mean no offense by this, but if you can't do this, then why are you? If you can't learn it, especially when you have been shown...?

First, I am not attacking.  I am simply explaining the way I learn things.
Second, I have NOT been shown.  Because I do not see.  Please point to where I was SHOWN.
Third, I guess you were just born knowing how to do this stuff, lucky you.  I was not.  I am TRYING to learn.  Which is why I am trying to tell people HOW I learn, so that I am actually helped for real.
Fourth, I have never meant any attack, or any offense, so if any has been taken by anyone I apologize.  Tone does not convey well in type.

I am telling you I looked in the C-Panel, and I see nowhere to find the information I want.  I just plain don't.  So I guess that makes me stupid.
I personally am feeling very attacked by you, at the moment, Aeolus.  I was getting some kind assistance, though not quite what I needed yet.
Please leave this to those who will be kind, okay?
At your request, I got off your thread.  I now make the same request of you...and in a much kinder manner than you made the same request of me.
Please honor the request and let folks who are being kind assist me, thanks.
Pages: [1] 2 3 ... 9

*
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
21 Guests, 1 User
Stephen.Kise
Home Forums News Downloads Login Register Advanced Search