-
Posts
3,655 -
Joined
-
Last visited
-
Days Won
12
Content Type
Profiles
Forums
Events
Everything posted by a_bertrand
-
SQL? SQL is just a language to access a database. And you can handle more than 50-100 people online with a database. Also, you could try MongoDB which works differently than MySQL and may react faster for what you need. And I'm sure twitter and facebook store every modifications. Yes. BTW if you know all, why don't you go forward and use memcache if you are so convinced it is better?
-
of course memcache is fast => it's basically a memory table where you can store whatever you want... But that will not make your game persistent in case you reboot the memcache would be lost (at least as far as I understand it). So it's not meant to store data, instead it's meant to keep temporary things you access often. Memory tables in mysql could do basically the same trick, again at reboot you loose all. So how you can solve that? 1) Avoid to modify too mucj 2) Make sure modifications / db access is as fast and simple as possible 3) Use a smart cache which do store after some time
-
First of all you are posting on an old old thread... so maybe it would be smarter to open a new one? What do you think? Second, why try to re-implement things when all DB I knows do have caches, so if you query 2x the same stuff it will not need to read back all again. Trying to make your own cache for things where a DB could do it better... not sure it makes sense. Personally for high load, I would avoid PHP, go to Java or C# which both would allow you to handle all the caching as you may there very well keep threads and objects in ram between page loads. That would be the first step in the right direction => use something more professional that PHP, and think carefully what you need to do.
-
Did you checked the forums? I'm pretty sure it has already been asked multiple times.
-
Copyright is on the code, the art (images, story & music) but not on the concept of a game. Only a patent would cover something, yet they would need to be the first and patent it. So as slong as you don't reuse unique names and the same story, nor the images nor the music, I don't see why you would have issues. But you cannot call yourself a clone either at that point ;)
-
First of all thanks for the report and the catch of this odd issue. I managed (with a bit of efforts) to reproduce the error. Basically, if you was using only the side panel to select which table you wanted to edit, this would never be triggered. On the other side, if you added a new row, and then selected another table via the table drop down list selector, you would have nasty effects. Anyhow, I uploaded a fixed version which should resolve this issue (hopefully).
-
He holds a valid full license. Verified by me ;)
-
Guest: I never said the combat system cannot be changed, instead I said he should tweak it to his own needs. Why? Because by default NWE doesn't give you 100 strengh and 0 of dexterity, it doesn't even allows players to change their stats. It only changes a bit of them at start while choosing a class. So if you design a module which let your players boost one single stat for whatever reason, then you should be aware that it may break the calculations on some other areas. Is that MY fault if you change the rules? Nope sorry. Should the engine works in any case? Well if you manage to make something which allows all tweaks and never break well you are simply better than me.
-
It is certainly positive when somebody have concerns about a point of another in the engine. And usually I'm pretty much open to discussion as long as the engine remains an engine and don't go too much in one or in another direction. Since the beginning of NWE, I created this project to help others create their own and UNIQUE game, not to offer something pre-cooked where you just have to put in some nice template, maybe change 1 or 2 texts and be up and running. It would be the same difference between an MP3 which you can hear directly and it's nice since you pay it and a software to compose your music. The second one is certainly more complex and may require you a lot more time to reach anything nice, yet it offers you more flexibility. Also, I do have a different point of view between what is a bug and what is simply a feature missing. For you whatever doesn't work out of the box as players expect is a bug, while fore me it's simply an area which should be improved either by the NWE core developer (me), a 3rd party module developer or yourself the game owner. In many cases as I repeated you since nearly your first complain, what you have in mind may completely differ from other people point of view and therefore must not be put in the engine. An example? Well the last one is this jQuery issue you have, saying some people may block google for security reasons. Well, sure of course that could happen. Yet somehow I doubt a company would block google and yet not block your own game. At the same time why not be scared by the fact the engine uses Javascript? As that could be yet something else somebody want to disable, and guess what, many many areas of the game will not work anymore without Javascript. Overall, I remain here in case of real bugs, or if you want to get some knowledge about a particular piece of code of feature, but don't doubt I will continue to answer in the same manner if you ask features / changes which are pretty much game dependent.
-
Maybe you miss the point here. The combats are normally an area which are pretty much game specific, as well as the stats. My game could allow strength of 200 while yours not. Should the game engine support all kinds of games and formula? Well in theory yes, and in practice it means that you have to edit the formula to match your rules. You may not like to edit someone else code, and that seems to me really clear. You expect also that I will fix all the things as you want them. Well at some point I shall give up. As said, we don't agree on the way the things should work nor we can. For me this is a blackboard where you build your game and logic. The combats should be re-written or at least edited to fit your needs as well as many other areas of the game. Does that mean the engine comes naked without anything? Nope, it means just that you are not free of work.
-
I cannot answer you because I don't know who uses is beside myself. I can tell you many areas of the game do uses it. Just search for the Ajax::IncludeLib() in the files and you should know where it is used.
-
DM: shall I repeat myself? NWE is not a game, and will never be. It is an engine where you should build upon YOUR game.
-
If you edit your config/config.php file you can define where the jQuery lib is loaded. Mind you it's not a google api, it's jQuery: $jQueryLib = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"; Put the file on your server and change this to point to your new URL. However honestly I would think it's a bad idea. Why? Because if your players browse a bit around, they will quiet certainly encounter jQuery more than once, and that will allow the browser to cache it. Also, why not offload some of your load to google?
-
I wonder why you don't go and check the function definition directly and see that the code is actually documented ;) For the wiki documentation: being a wiki documentation feel free to contribute if you find it too sparse. Finally for the combat bug, I never had that. I will try to reproduce the bug. For me it doesn't have anything to do with the LinkButton function, instead it must have to do with the calculation of how much energy you need to have before being able to attack: $userStats = UserStat::LoadStats($userId); $user = array(); $user['health'] = $userStats['Health']->value + 0; $user['max_health'] = $userStats['Health']->maxValue + 0; $user['protection'] = ceil($userStats['Dexterity']->value / 3); $user['min_damage'] = ceil($userStats['Strength']->value / 2.0); $user['energy_cost'] = $userStats['Strength']->value; $maxDmg = $userStats['Strength']->value * 3; foreach ($equipment as $i) { // if ($i->slot == "Weapon" && $i->name != NULL) if (isset($i->damage)) $maxDmg += $i->damage * $userStats['Dexterity']->value / 2.0; if (isset($i->protection)) $user['protection'] += $i->protection; if (isset($i->energy_cost)) $user['energy_cost'] += $i->energy_cost; } $user['max_damage'] = $maxDmg; $user['reload_energy'] = ceil($userStats['Dexterity']->value * 1.5); $user['max_energy'] = $userStats['Dexterity']->value * 4; $user['energy'] = 0; And just by the look of it, if you have put all in the strength and not in the dexterity, you will never have enough energy to attack. Call it a bug, or call it an odd formula, for me it's more that your player should have balanced a bit more his/her stat.
-
Indeed the current PvP is totally useless. However some people asked for it, so I added a start point. But unless you have a goal, rules and whatever to know what the PvP effect should be then it will remains useless.
-
All the combat should be basically customized for your own needs. I don't believe we can offer something which fits all here. For example, I would not want to have PvP most of the time.
-
I just checked, and it works fine, however you will need to clean the user_stats table as it stores the max_value there as well. The idea here is that you could have a max_value per user for example, for donors, or based on level or whatever.
-
not only change it on the file DM, but that line need to be changed in the DB ;)
-
To add a bit more... cheating to Alan clues: You can simply store when this part of the code last run, and unless X sec passed, you skip. That should not take too much time. The only issue here is 2 pages calling the code at the exact same time, you may actually run the code twice. I will let you find a work around for it ;)
-
It's based on a time counter of course. A number of page visit would make no sense. Also you have full flexibility on how fast it recover ;)
-
It's not a full blown wiki anyhow, and the only other way to avoid double uploads would be to use ID which of course you would loose the info of which ID is what, therefore we should then add an image browser too. Honestly for the kind of wiki offered, the current system should be enough.
-
Wiki images are saved in the database (as you could see from the code at line 33 of the script). To include the image use the wiki tag: [[image:filename]]
-
MNG: I strongly disagree here. Sure most mafia games look Torn City clones. But that's way not most web games ;-)
-
http://php.net/manual/en/function.var-dump.php
-
It's not proper code, it's a binary file. You must use the engine to install it from the admin panel. Anyhow now you can download free modules from the marketplace even if you are not logged in or don't have any license.