-
Posts
3,655 -
Joined
-
Last visited
-
Days Won
12
Content Type
Profiles
Forums
Events
Everything posted by a_bertrand
-
5.1.6 Why? Because it's the standard Cent-OS 5.5 version and I will not upgrade PHP by myself as I want to keep the support of Cent OS
-
learning too many things at the same time ends up with one thing => you learn nothing. Simply put you cannot learn C++ / PHP / 3D and whatever else all in the same time.
-
First of all, avoid to use any kind of super sized fonts as it makes your post just annoying. I cleaned up your mess. Now, about your service, I don't see why people should post their link there, there is no traffic nothing, and therefore I doubt you will have much success with the idea, I don't find it even an interesting idea myself. Anyhow good luck with it.
-
Went there did that :P http://eu.nowhere-else.org Didn't used JQuery as first of all when I started it, JQuery wasn't there, and also I honestly dislike its syntax. Now, what I did use is PHP, JS, HTML, CSS and MySQL The chat is C# / JS Took me about 5 years to reach what you will see there.
-
You cannot trust such tool to scan your code. Sorry, there is no easy way to make your code secure.
-
I would say it is time to change soft... WBB doesn't seem so good to me.
-
Just add an insert in the register file... should not be that complex.
-
Count about 5$ for an active member.
-
1) slow it is slow... but not only due to the hosting... your chat doesn't make it feel rea-time. 2) The look has been discussed, it is currently ugly, also why so much space between lines? 3) BB code? That's anyhow not something I would want in a chat normally 4) If you leave the page you don't get updates, it should be linked to an iframe which gets updates all the time in my opinion or via other tricks 5) Using mysql is ok, but only if you use memory tables. What is required today for a chat: - Smilies - URL translated to links - Real-time feedback (press enter and you don't wait even 100ms to get the line displayed, even if the others may wait a couple of sec for the update) - Chat from any page of the site (while playing) - Actions (/me is doing something) - Channels maybe? - Whispers (private chat between 2 players)
-
Ok checked, the look & feel is refreshing however the game is like many other, those training, buying and battles... I don't see much uniqueness. Also I don't see the "99%" of user content as it is all system based, what can be user generated are the wars... beside that nothing. Also some people should check a bit what are the currencies in the world, as if I choose Switzerland which has been annexed to France (already an oddie) and that France uses SFR... sorry but this is not anymore true since what? About 10 years? Come on guys... wake up. The welcome message contains also BB codes pointing to some image sharing site... and of course is not display cool... And guess what you need to purchase some "gold" which have of course the wrong currency label and for that you need to pay... otherwise you can't simply play. Overall, sorry doesn't make me stick to this kind of game, I actually find it completely lame beside for a nice look.
-
Please try to give even less info next time, it could help us to not answer.... A bug report is composed of: - A Summary (title) - A Description - A step by step way to reproduce it (what did you do) - Which software do you use If it's a mod, as I believe, and if it is a free mod, maybe showing us the file which doesn't work.
-
Well, let's say admin (for example Nick and I) review codes and give a negative feedback, then what happens? The buyer should not pay? Also, we don't have all here the same skills, so something which for me would be not really good for some others it is already fine, how can we judge? Finally, would this service just a nice thing from us or a payed service? Let's say 10$ for 100 lines of codes to check? And who pay it? The buyer or the seller or 50% / 50%? I don't think it is a bad idea, but some stuff need to be discussed I believe. Also I don't know yet well enough McCode to be able to evaluate how something will work or not or if it may introduce some security issues with some other mods / pieces. But let's say I'm not completely closed to the idea, and we could act like a payment gateway, we do get the code, and say to the buyer the code is there and has been checked, then when the payment is done we hand over the code.
-
One last question. What is MVC, and what are the benifits of it?
a_bertrand replied to Amanda<3's topic in PHP
MVC => Model View Controller This is an old idea where you can split GUI (Graphical User Interface) into 3 parts, this applies to normal applications or web applications as well. Now what are the benefits? Basically for a given set of data (Model) you could have one or more business logics (Controller) and for a given set of business logic you can have one or more graphical user interfaces (Views). Think that you have a database loaded in memory, the rules to handle it and a "template" to display it and you have more or less the MVC idea. Now, the first advantage is that you could change the view (look & feel) without changing the code, and you could have a mobile version as well as a standard version with the same code. On top of that you can do "Unit Testing" which is basically automatic testing of the code as you could test the controller and the model without problems where testing the view is normally nearly impossible. MVC is not new and there is multiple implementations of this concept. For .NET / C# there is a MVC library to create web sites. I tested it and it wasn't really offering me many advantage over the standard .NET Web tools, actually it was worse than the standard things. Ruby on Rail is strongly using this concept, and you can use some PHP frameworks like Codeigniter which works like that too. Is it the best solution for GUIs? Not really... as always depends what you do and how do you do it. -
Well, for 100$ you can buy McCode... or you can pick an engine for free... or many other options... you should specify what you need. BTW custom made engine for 100 GBP is not an option, as if somebody offers it then I can assure you either it is not unique or you are basically loosing money. The amount of work involved in creating an engine is a lot more than what you pay with 100 GBP ;)
-
Well this is a somewhat difficult question to answer. You have a lot of different possibilities depending on what you want to do and where / how you want to code. All rounded languages: - Java - Python - C++ / C - C# - VB.NET Scripting languages - Python - Ruby - Perl Compiled and running in virtual machines (make the code compiled run on more platforms): - Java - C# - VB.NET Compiled and running natively (which makes the code compiled run only on the compiled platform): - C / C++ Platform specific: - Objective C (Mac OSx / IOS) - C# & VB.NET (are more toward windows environment but runs nicely on multiple others via Mono) Easier to learn: - C# / VB.NET - Java Harder to learn: - C / C++ Now Java & C# / VB.NET offers nearly the same kind of capabilities meaning: - You can develop GUI - You can develop Console (read command prompt) applications - You can develop Web applications - You can develop Phone applications As you see the choices / options are virtually without limit. Now, if you ask me what I code with I will answer you C#, and I can even tell you why, but that doesn't mean it is the best solution for all problems nor the only right choice. As always you must a bit think what are your goals. Also if you work in a team, the team normally already have a language and you must normally comply to the standards of the group. If you are alone then you need to choose on which platform you want to develop Linux, Mac or Windows depending on that the tools available will not be the same. If you choose windows then I would personally tend to go to Visual Studio so either VB.NET (I don't like it), C++ (not easy), F# (I would not pick that), or C#. If you say Mac or Windows I would then tend to go for Java, knowing that you will have an harder time but on the other side your application will be more easily ported on any platform (yet the honestly the framework is not as nice as .NET). Now if you say you want to develop 3D games, then I would go for C# or C++ everything else is not really an option.
-
Because you never know if it is really a radio button, users can change ANY field data and feed it to your PHP, therefore you cannot trust anything coming back from the browser.
-
Use Cyrillic symbol table on WSIRC
a_bertrand replied to mrjingles's topic in Feedback and Site Support
Ok implemented, let me know if it works. Djk: I didn't yet implemented the £ sign... will come hopefully :rolleyes: -
1) C & perl are not OO languages 2) yes and no, all depends how you write the code ;) 3) For sure not, OO doesn't explain how C works as C is not OO, C++ is on the other side. Yet saying all OO languages are the same is also not correct. 4) Great? Yes? For what? Now I will give you my impressions: - PHP OO implementation is as ugly / poor as possible, they do offer some stuff but it is soo weak that you can as well code without and your code will not be that much worse. - OO offers first the "encapsulation" idea, where you have your data and all the functions to handle / work with your data within one class. Some times it is not even useful, some times it is just incredibly powerful. - OO like offered by C# or Java is really great, yet I do prefer C# - OO like offered by C++ or PHP => no thanks I personally code a lot in OO (but I do work mainly with .NET / C# currently), when I was working with PHP I was programming procedural. So no there is no single answer, OO is not the ultimate thing to learn but it can be both powerful and more readable if used wisely. If I was you, and wishing to learn something more than simply PHP then go for another language / plateform, but don't believe that learning OO in PHP will open you the doors of every other OO languages.
-
I didn't dig much into your code, but I can tell you already that it is un-secure: $db->query("INSERT INTO charone VALUES('".$ir['userid']."','$name','$type','$gender','$alignment')"); NEVER, and I repeat myself NEVER let any $_POST, $_COOKIE, $_GET variables / parameters directly go into the database! As anyone can send whatever they want and hack your game. So first things is to at least to use mysql_real_escape_string for all the string values, and intval for all the integers (I personally don't use intval instead do something like ($val+0) which will validate floats and ints in your case: $db->query("INSERT INTO charone VALUES('".$ir['userid']."','".mysql_real_escape_string($name)."','".mysql_real_escape_string($type)."','".mysql_real_escape_string($gender)."','".mysql_real_escape_string($alignment)."')"); second thing, doing an insert into a table without specifying the columns is dangerous, as if you modify your table structure it will not work anymore, therefore it is a good habit to always define which columns you will use for the insert statement: [mysql] INSERT INTO charone(id,name,gender,alignement) VALUES(...) [/mysql]
-
Odd as normally PHP files are limited to 30 sec execution time... Anyhow you could as well write script to delete those files.
-
Custom code in 5 month or yet a bit more? No way... Count 1 year or more and that if your coder is any good. And playing web games since 5 years doesn't make you an expert in the market, it makes you wishing for some kind of game, yes but hardly make you know all the tricks to run a web business. Yet, it is good to see that you want to start something. I would suggest you to define clearly the story, the feature list and make hand drawn images of what you want, that will both clarify your mind and at the same time may help you start with potential partners. In any cases, good luck!
-
Currently I'm simply overloaded, otherwise I could try to quickly create an attacking system, as I doubt you want something very complex. Also, Zap doesn't have much as people didn't show much interest in it...
-
Well... Didn't found any good pre-made textures for planets and also I don't really want to have planets which look similar to 100 different games ;) Anyhow thanks for your comments Lilith
-
No it doesn't, but that should not be that hard to implement
-
- Wrong username & password triggers a page without look & feel: show the error on the same page - No story, no introduction, no help? Sorry what shall the new players do after registering? - Why must I login after registering? Why not jump inside the game directly? - Fatal error: Call to undefined function mail_inbox() in /home/corruptc/public_html/mailbox.php on line 34 - Add contact? And then? why it doesn't work? - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Doesn't work well...','Just testing your game but it doesn\'t work very well..')' at line 2 Overall it is yet another McCode game and a badly setup one... it doesn't work well (the few features I tested), no story, nothing... not something I will want to try futher