-
Posts
283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by Someone
-
What Module Would You Pay For
Someone replied to gmoore's topic in Paid modules (requests or offers)
I am willing to pay for just about anything, walking piggy bank here haha That is if its rather cheap. Some the things I am gonna need/buy in near future casino type games, blackjack, poker,keno, roulette etc 1) Like henchmen? When you said helpers I thought you meant helpers to manage the game, as in moderators. But pretty sure you mean NPC that follow the character, or placed around the world? 2) Building Module Things such as the casinos I mentioned will be own able by players, gonna try to make it dynamic enough to be used for many things. 3) Seems like I need to buy another book As for what I make that I will (attempt to )charge for, is things that I make extra effort adding things that I really would not need if I was making the module only for my self. Such as fancy admin panels for not having to go the database. -
Was curious what you where up to. Im keeping all in atm, as I use the other modules as samples. But good to know that I have someone to nag on when it comes time to strip away what Im not gonna use.
-
Could be since your not logged in, that you dont see an error. Change this in config.php // If set to true, the error details will be display for all even non-admins. $alwaysShowErrorDetails = TRUE;
-
Just don't post the database connection password. He is updating an old method to connecting to mysql. So no connection has been made.
-
thebobby, I requested that you post the database connection details. I seriously think you need to learn some basic things before attempting to get this running. Things such as: http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/connect-to-mysql-database.aspx
-
Please for the love of god help me. will take 10 seconds
Someone replied to Bennyh789's topic in Modification Support
I am not an McCodes user, so I don't know the table structures. But there is some code you can use for debugging. // This assumes that you are testing the cron by loading it in a browser and not using the cronjob $houses = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `users` ON (`userid` = `uhouseTenant`) WHERE `uhouseTenant` > '0'")) or die(mysql_error()); while ($r = mysql_fetch_array($houses)) { echo '<pre>'.print_r($r).'</pre>'; mysql_query("UPDATE `owned_houses` SET `uhouseRTime` = `uhouseRTime` - '1' WHERE `uhouseRTime` > '0'") or die(mysql_error()); mysql_query(sprintf("UPDATE `users` SET `money` = `money` - '%d' WHERE `userid` = '%u'", $r['uhouseRent'], $r['uhouseTenant'])) or die(mysql_error()); mysql_query(sprintf("UPDATE `users` SET `money` = `money` + '%d' WHERE `userid` = '%u'", $r['uhouseRent'], $r['uhouseOwner'])) or die(mysql_error()); mysql_query("UPDATE `owned_houses` SET `uhouseTenant` = '0' WHERE `uhouseRTime` <= '0'"); } Another note, I think you risk players going into negative money, or not needing to pay rent, as you are not checking ig the player have the money to pay. -
Its CSS based, one <span style="color:#000000"> per letter, the word administrator becomes 500+ characters.. Figured storing the whole generated HTML string would not be efficient and for usernames longer than 14 characters would break varchar(1024), so gonna glue and store the hex in one UserVariable, and use explode() when displaying the gradient username (or other text). Prefer CSS atm since the text can be selected for copy paste. Something I noticed gets done alot when playing this kind of games. Perhaps transparent images would be better, but think that will be another version. I to have a crimes almost ready, its something I made while messing with making my own engine, the crimes are in an array in a file though. Atm it is based on guts stat I made while learning the engine, but should be easy to make using any stat. You get 3 (paying players could have more) random crimes that you have % chance to succeed at. As you succeed a crime, there is a chance you improve your skill at it. Max skill is 85%. The thought of having only a few crimes available at any one time is that the player will be able to learn which ones that payout the best. Needs more admin interface to meet the NWE standard.
-
[ATTACH=CONFIG]845[/ATTACH]Currently working on a gradient user names module. Staff will be able to make gradients that players can choose to use. Or perhaps buy with donation points or given as prize in contest. Generating 1000 gradients took about 1 second, and surged the CPU use to 30%. And with 50 gradients 19-20% CPU for 50ms. So will store the hex colors in the db using a user variable
-
http://www.us-cert.gov/current/ In my area a nation wide alert has been issued, encouraging to disable Java in browsers ASAP
-
Do that and Ill redo it in node.js just in spite.Not that know node. Lets focus energy and get more cooore updates, ahem, version update anyone
-
NetBeans looks good, Beyond compare as well. But I'm scared of new stuff so. Yup this is the topic, no bashing other engines going on here
-
Don't need the engine for that, that is what the community is for. Perfectionist intervention :) btw you having problems finding private messages or you just plain ignoring me?
-
Even Dreamweaver comes to short when it comes to PHP, especially when it comes to modular stuff. Might have changed in later versions, but doubt it. If you do give it a try, same goes all who try it who considers using the engine. I will do my best to help you with any issue. I have the forum up on one of my monitors, and at the computer 12 hours on lazy days.
-
Peasants and Globalists Its based around a fictional world where a small minority of people control the world, and their families before them have done so for hundreds of years. Yet the peasantry think they rule world through elections. A bit tricky, because even if you have drama between two fractions, you cant have just any peasants killing each other, thats just wrong. Its centered around a large mass of land, where the peasantry is refusing to turn over their weapons to the globalists. I really need to work out the details, hence the reason I am working on non game specific stuff atm, might even be I start a classic mafia game, just to have something out there. Although I think that can be a time stealer for other things.
-
Much appreciated Ill name an NPC after you :)
-
Request from illusions about the in game forums
Someone replied to a_bertrand's topic in New Worlds Engine
I like that it remembers what it was left as last time you where there. I am definitely not a perfectionist, nothing _I_ do is ever perfect :) -
Possible error reporting bug, function secure used before declared
Someone replied to Someone's topic in New Worlds Engine
No thank you for fixing. And it worked, I did the same error, and now it shows the proper error message. -
Error: Call to undefined function Secure() Error in "F:/xampp/htdocs/nwe/libs/common.php" Line 1214 This error was because I required a file that does not exist in a lib file. So the engine had the full right to complain. But if I comment out common.php:1214 I get a much better error reporting: Error: require_once(mysecretbackdoortothefederalreserve.php): failed to open stream: No such file or directory Remember to fix me common.php line 1215Error in F:\xampp\htdocs\nwe\modules\gradient_usernames\lib.php Line 376 Error in F:\xampp\htdocs\nwe\libs\hooks.php Line 41 Error in F:\xampp\htdocs\nwe\index.php Line 194
-
REPENT! Seriously though, I understand where you come from. I too have had problems understanding hooks etc. But NWE makes it really easy once you get just a bit into it. Much depends on what IDE you are using. I use Eclipse with PDT http://www.eclipse.org/projects/project.php?id=tools.pdt When I am wondering about what some thing does, I can just right click the variable or function, select "show declaration" and the file pops up
-
Bootstrap Theme Experimentation
Someone replied to Someone's topic in Free Modules (Requests or Offers)
Been working on the Boots class. I have it so the class figures out whether or not the current theme is using the Bootstrap framework. If the theme is not using Bootstrap, it uses the built in engine functions such as LinkButton(). My goal is to be able to make moduels, that have no html in the content.php instead it lets the Boot class handle all displaying of content. class Boot{ public $returnResult = false; //true = return the result, false = echo the result public $activeForm = ''; //The name of the form currently working with private $return = ''; private $useBoots = false; private $currentTemplate = ''; private $formType = ''; function __construct(){ global $baseDir; $this->currentTemplate = GetUserVariable(userTemplate); if (file_exists($baseDir.'/templates/'.$this->currentTemplate.'/useBoots.txt')){ $this->useBoots = true; echo 'use boots'; } else { echo 'no boots'; } } /** * Creates a button * * @param string $label The label shown infront of the input element * @param string $name Input element name attribute * @param mixed[] $options Optional to use, array('id' => 'inputid|-generatedid-', 'size' => 'mini|small|large', 'type' => 'info|success|warning|danger|inverse|link', 'blocklevel' => 'true', 'addClasses' => 'any additinal classes you want added to the button', 'javascript' => 'JS that is on activated on onclick', 'disabled' => 'true/false', 'target' => 'target frame', 'tooltip' => 'if other than null, will show the value above the button'); * @return string Html to start a form */ public function Button($label, $url, $options = array() ){ $btnClasses = $this->ButtonBuildClasses($options); $id = ''; $rel = ''; $title = ''; $js = ''; $target = ''; if( isset($options['id']) ){ $id = $options['id']; } else { $id = MakeId('btn_', $label); } if( isset($options['javascript']) && $this->useBoots){ $js = 'onClick="'.$options['javascript'].'"'; } elseif( isset($options['javascript']) ) { $js = $options['javascript']; } if( isset($options['disabled']) ){ $enabled = $options['disabled']; } elseif(!$this->useBoots){ $enabled = FALSE; } if( isset($options['target']) && $this->useBoots){ $target = 'target="'.$options['target'].'"'; } elseif( isset($options['target']) ) { $target = $options['target']; } if( isset($options['tooltip']) ){ $rel .= ' rel="tooltip" title="'.$options['tooltip'].'"'; } if($this->useBoots){ $this->ButtonBuildClasses($options); $out = '<a href="'.Secure($url, true).'"'.$rel.' class="'.$btnClasses.'" id="'.$id.'" '.$js.' " '.$target.'>'.$label.'</a>'; } else { // LinkButton ($label, $url, $javascript = NULL, $target = NULL, $return = FALSE, $enabled = TRUE) $out = LinkButton($label, $url, $js, $target, TRUE, $enabled); } if($this->returnResult){ return $out; } else { echo $out; } } /** * Creates a an input with a label infront * * @param string $label The label shown infront of the input element * @param string $name Input element name attribute * @param mixed[] $options array('id' => 'inputid|-generatedid-', 'placeholder' => 'this text will be shown in the input field', ); * @return string Html to start a form */ public function InputWithLabel($label,$name, $value, $options = array() ){ if( isset($options['id']) ){ $id = $options['id']; } else { $id = MakeId('inp_', $label); } if( isset($options['placeholder']) ){ $placeholder = $options['placeholder']; } else { $placeholder = ''; } if($this->useBoots){ $out = '<div class="control-group"><label class="control-label" for="'.$id.'">'.$label.'</label><div class="controls"><input type="text" name="'.$name.'" value="'.$value.'" id="'.$id.'" placeholder="'.$placeholder.'"></div></div>'; } else { // How to better handle this if the game is not using a bootstrap enabled theme $out = "$label <input type=\"text\" name=\"$name\" value=\"$value\" />"; } if($this->returnResult){ return $out; } else { echo $out; } } private function ButtonBuildClasses($options = array() ){ $btnClasses = 'btn'; if( isset($options['size']) ){ $btnClasses .= ' btn-'.$options['size']; } if( isset($options['type']) ){ $btnClasses .= ' btn-'.$options['type']; } if( isset($options['blocklevel']) ){ $btnClasses .= ' btn-block'; } if( isset($options['disabled']) && $this->useBoots){ $btnClasses .= ' disabled'; } if( isset($options['addClasses']) ){ $btnClasses .= ' '.$options['addClasses']; } return $btnClasses; } Some sample use of the class // Have options in a var $options = array('type'=> 'danger','toolTip' => 'My tooltip'); $boot->Button('My Button', 'index.php', $options); //Or passed directly $boot->Button('My Large Button', 'index.php', array( 'type' => 'danger', 'size' => 'large', 'toolTip' => 'My tooltip' )); //Or no options at all $boot->Button('My Defult Button', 'index.php'); $boot->InputWithLabel(Translate('Amount'),'deposit_amount','', array( 'placeholder' => '1000$ minimum' )); //for this one I want the data to be returned and not echoed $boot->returnResult = true; $boot->Button(Translate('Cancel Transaction'), 'index.php?p=ngm_bank&cancel='.$result->fields[0], array( 'size' => 'mini', 'type' => 'danger' )); What is making my brain hurt atm, is how to best handle if the theme is not using Bootstrap. Hard-coding into the class somewhat dilutes the purpose of the class as well. I have no control of what classes other themes uses, besides perhaps the default ones that comes with NWE. Should I extend the current template system, like how templates/templatename/functions.php works. -
Yeah he looks sorta out of it, he had just had his treats. He is a happy cat :) The second link is a discussion of the comparison that is in the first link. I will not post my opinions on the other engines, as it will result in no good. As djkenna posted in that thread "Let the flame war/favoritism comments commence". This thread is a ticking bomb... Stepping slowly away :)
-
Aha found it http://makewebgames.io/showthread.php/42270-Game-Engines-available-via-supported-by-this-community-comparison
-
Did not think you where moving away. That comparison is the quickest want to get an overview, unless there is corruptZion and Alain wrote the comparison :) Annoys me that I cant find the thread about the list, might be a newer version, and further details in the thread. Someone is bound to know about the thread though
-
Have you had a look at https://docs.google.com/spreadsheet/pub?key=0Ag25WGKbJMYDdEJ3S3d4SUdZdTFXSmZ0eG94N2pVaGc&single=true&gid=0&output=html There is a forum thread about it somewhere, ill see if I can find it. Edit: Nope could not find it
-
Yup I am happy with the changes. Only missing the function I quoted above...