Open Side Menu Go to the Top

03-15-2012 , 01:12 PM
oh, and i'll add: there's nothing at all wrong with sql, but many folks these days choose to implement their complex data stuff in code and use a much simpler (e.g. nosql) store for the persistence layer. maybe this too could help with operation costs? idk.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
03-15-2012 , 01:14 PM
If it makes you feel better about AWS - prices are pretty consistently going down.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-15-2012 , 04:07 PM
Quote:
Originally Posted by jjshabado
If it makes you feel better about AWS - prices are pretty consistently going down.
Ye, I get emails pretty much weekly about price reductions. They are usually only a couple of % but for a big company they probably make quite a difference.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-15-2012 , 04:58 PM
And it gives pretty good confidence that prices aren't going to be jacked up anytime soon.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-15-2012 , 07:49 PM
when amazon starts pimping its cloud offerings with television commercials, we will know we've arrived at the bottom of the market.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 07:55 AM
I'm usually very much in the "lol IT books" camp, especially for programming since stuff outdates so quickly and yet I just got an order of three paperback books for about 150 Euro total. Two of them are on programming (same language) and one is a "concept book" (related to said language).

Hints:
Spoiler:
Concept book was about 65 Euro, rest was evenly split between the other two

Spoiler:
Concept book has >1k pages

Spoiler:
The programming books are a second and third book for the language i.e. not introductions but rather advanced and superadvanced


Anyone willing to guess? I'll reveal this incredibly interesting info later :P
You can win no price except for a thumbsup.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 09:11 AM
Code Complete?

Edit: I missed "related to said language" so I assume my guess was wrong.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 10:16 AM
Stupid question.
MFC C++,
I have a few structs that are used everywhere in my program.
I would like to be able to add a function to the struct that clears/initliatzes all the variables.

Is this possible? I have seen something about adding functions to structs before but when I complied i get errors about the function already being defined. Yes, I could make them classes but I would imagine this would be possible as well especially since they are all just data...

Basically what would be ideal would be

Code:
struct MyStruct
{
	bool mybool;
	double mydouble;
	clear();
}

MyStruct::clear()
{
	mybool = false;
	mydouble = 0.0;
}

and then to intilize I would simple do

MyStruct instance;
instance.clear();
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 10:31 AM
Quote:
Originally Posted by tyler_cracker
oh, and i'll add: there's nothing at all wrong with sql, but many folks these days choose to implement their complex data stuff in code and use a much simpler (e.g. nosql) store for the persistence layer. maybe this too could help with operation costs? idk.
I would love to avoid paying out the rear for server costs, but I would need to sit down and figure out if there was a way around it. I need to keep historical stats and a huge player database that is going to be hiding some sensitive info (to the game, not credit card info or anything).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 10:38 AM
Quote:
Originally Posted by Jeff_B
Stupid question.
MFC C++,
I have a few structs that are used everywhere in my program.
I would like to be able to add a function to the struct that clears/initliatzes all the variables.

Is this possible? I have seen something about adding functions to structs before but when I complied i get errors about the function already being defined. Yes, I could make them classes but I would imagine this would be possible as well especially since they are all just data...

Basically what would be ideal would be

Code:
struct MyStruct
{
	bool mybool;
	double mydouble;
	clear();
}

MyStruct::clear()
{
	mybool = false;
	mydouble = 0.0;
}

and then to intilize I would simple do

MyStruct instance;
instance.clear();
Shouldn't be a problem, just a couple of tweaks to get it compiling:

Code:
struct MyStruct
{
    bool mybool;
    double mydouble;
    void clear();  // specify return type (void)
}; // semicolon

void MyStruct::clear()
{
    mybool = false;
    mydouble = 0.0;
}
edit: FYI, there is virtually no difference between structs and classes in C++ anymore. The only difference at all is that struct members are public by default and class members are private by default. So don't worry too much about it!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 10:38 AM
Quote:
Originally Posted by Jeff_B
Stupid question.
MFC C++,
I have a few structs that are used everywhere in my program.
I would like to be able to add a function to the struct that clears/initliatzes all the variables.

Is this possible? I have seen something about adding functions to structs before but when I complied i get errors about the function already being defined. Yes, I could make them classes but I would imagine this would be possible as well especially since they are all just data...

Basically what would be ideal would be

Code:
struct MyStruct
{
	bool mybool;
	double mydouble;
	clear();
}

MyStruct::clear()
{
	mybool = false;
	mydouble = 0.0;
}

and then to intilize I would simple do

MyStruct instance;
instance.clear();
In c++ you can have functions in structs. I see in your code that you forgot return type, this might be the source of your problem. Try declaring it as

void Clear();

and then

void MyStruct::Clear()
{
}


benholio beat me to it..

Last edited by myNameIsInga; 03-16-2012 at 10:43 AM. Reason: Im slow
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 11:32 AM
Quote:
Originally Posted by Jeff_B
I would like to be able to add a function to the struct that clears/initliatzes all the variables.
and then to intilize I would simple do

Code:
MyStruct instance;
instance.clear();
You want a constructor. You might also want a clear if you are into recycling.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 02:27 PM
does anyone use a VPS as their actual computer? apparently its popular with day traders who need uptime 24/7. i coudlnt believe it, immediately security concerns popped into my head

was just wondering if anyone has experience with it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 04:32 PM
Quote:
Originally Posted by greg nice
does anyone use a VPS as their actual computer? apparently its popular with day traders who need uptime 24/7. i coudlnt believe it, immediately security concerns popped into my head

was just wondering if anyone has experience with it
Security is not much of a problem (as long as its setup correctly), for me the bigger issue would be speed.

My guess would be that the day traders have some sort of web based portal setup which they can trade through which will be quite fast, but you try using a remote desktop and however fast your connection is, there is going to be lag.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 05:49 PM
yeah i'm sure a lot of "lone wolf" traders use remote desktop vps to a very stable connection in a datacentre, they likely really want the platform to be up and able to close out their positions automatically etc even if your own internet goes down. Can't see lag being much of an issue for day trading, most of them are probably not "scalping" as super-low timescales. like being disconnected while registered for a $5k husng, losing connection with a trade active is most undesirable!

A lot of internet marketers run VPS as main computers too, tho not their only ones. very handy to have multiple / throwaway IPs, and computer(s) that can keep running automation programs 24/7 like xrumer, senuke etc.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 09:01 PM
Quote:
Originally Posted by Tim Brice
I would love to avoid paying out the rear for server costs, but I would need to sit down and figure out if there was a way around it. I need to keep historical stats and a huge player database that is going to be hiding some sensitive info (to the game, not credit card info or anything).
nothing you've indicated here screams out to me "this should be in a proper relational database". in fact, "huge player database" might be a plus for a nosql (or other persistence layer) solution.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 09:16 PM
Quote:
Originally Posted by MrWooster
My guess would be that the day traders have some sort of web based portal setup which they can trade through which will be quite fast, but you try using a remote desktop and however fast your connection is, there is going to be lag.
i also thought the same thing

guy told me he is using teamviewer to control it. my experience was that it was always slow and laggy. pretty much the same with all VNC like softwares
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 09:22 PM
i've found RDC to be pretty usable over a non-dog**** connection (i.e. home broadband to work through vpn tunnel).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-16-2012 , 10:13 PM
I used to use tightvnc but over a lan - and it was almost indistinguishable from direct control. def way better than standard vnc. I used it for coding php.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2012 , 06:07 PM
Does anyone have first hand experience with this?

http://impactjs.com/

It looks pretty frikken amazing, but comes at a cost.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2012 , 07:19 PM
Quote:
Originally Posted by Shoe Lace
Does anyone have first hand experience with this?

http://impactjs.com/

It looks pretty frikken amazing, but comes at a cost.
That does look interesting for a project I'm hoping to get going with next month.

So yes, if anyone knows if that's any good, I'd love to know. The licensing looks pretty reasonable to me.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2012 , 07:51 PM
I want to hear from Gullanian, surely construct2 would be the first port of call for a 2+2 programming reg wanting a html5 game creation suite?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2012 , 08:20 PM
Impact is very popular, has been around for a while and has had good feedback so it's probably a safe bet but I've never used it myself. However I haven't seen many games made in it though, if anyone comes across good examples beyond the ones on their website I'd like to see them! Imo that's the best way to judge a potential engine - see what people are making in it.

It seems quite well documented as well which is a rarity amongst most game engines.

For programmers Construct 2 might not be the most comfortable choice, even though we have a full Javascript SDK most development is based around the event system so that might feel un-natural at first for some programmers. Still it would be worth giving our free edition a try if you haven't already http://www.scirra.com/store/free-html5-game-engine

Because I'm shameless and have the opportunity to show it, you should check out this Construct 2 game that recently won our rotation based competition:

http://www.scirra.com/arcade/games/a...s/848/airscape

In my completely biased opinion it's one of the best HTML5 game I've seen yet. The author also recently wrote a tutorial on how he made the mechanics which is an interesting read:

http://www.scirra.com/tutorials/273/...sed-platformer

If you do try Construct 2 in your hunt for a HTML5 game engine I'd love your feedback (feel free to PM me) especially if your feedback is negative, we sometimes find it difficult to get programming types to try our engine so any feedback is appreciated!

Last edited by Gullanian; 03-17-2012 at 08:28 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2012 , 08:49 PM
I can't say that I even know what I'm talking about too much. Is impact and construct 2 even comparable? I just happened to see an Impact/Node.js tutorial somewhere and it looked pretty cool.

From what I think I know about it, you can publish a game with it similar to how couchdb can serve a couch app but you can also leverage components of it and use your own code (socket.io and node.js) to handle most of the logic similar to how couchdb can be used as just a datastore too while your web server handles the logic.

Is that the flow of how construct works too?

Edit:
I'm not going to make any html5 games yet but if I ever do I'll certainly look into construct. Also I've been pretty inactive on the forums lately, congrats on your success with scirra.com gullanian.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2012 , 12:45 AM
if anyone needs a vps, buyvm is gonna have more stock on March 23rd, 2012, 6AM GMT -8

it really is the best deal out there and they sell out of hundreds in minutes so i'd try to get one
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m