![]() |
|
SpeedHack 2011 is coming soon |
Matthew Leverton
Supreme Loser
January 1999
![]() |
The secret rules are in place. Site is updated. Time to get exite!
|
GameCreator
Member #2,541
July 2002
![]() |
"This year there might just be a special rule that may require you to check what other people are doing..."
|
BAF
Member #2,981
December 2002
![]() |
OH NOES ML IS STARTING HIS ENTRY EARLY!!!! |
Fishcake
Member #8,704
June 2007
![]() |
Less than 12 hours to go! Time to get a simple framework up.
|
BAF
Member #2,981
December 2002
![]() |
Frameworks are for pussies.
I don't even have Allegro installed yet.
|
Arthur Kalliokoski
Second in Command
February 2005
![]() |
BAF said: Frameworks are for pussies. Hey, it's convenient, OK? {"name":"Cat%20Carrier.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/5\/95cf54667d8165607516d4d85a590408.jpg","w":760,"h":587,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/5\/95cf54667d8165607516d4d85a590408"} They all watch too much MSNBC... they get ideas. |
Matthew Leverton
Supreme Loser
January 1999
![]() |
I don't even have a computer yet. Sent from my iPhone. |
BAF
Member #2,981
December 2002
![]() |
Matthew Leverton said: I don't even have a computer yet. Yes you do. You're just holding it wrong. -Steve Jobs |
Shravan
Member #10,724
February 2009
![]() |
Matthew Leverton said: Time to get exite! excite
|
Desmond Taylor
Member #11,943
May 2010
![]() |
I know about case-sensitive file-name with Linux as the person that hosts my site is using Linux and I have to be careful with my PHP scripts. Just hope one of the rules are not Networking as I only know how to use WinSock and most of you should know that is windows only and that I would need to learn how to do it for Mac and Linux, or I could use a bonus Act if there is one to get rid of a rule |
Næssén
Member #5,025
September 2004
![]() |
Desmond Taylor said: I will try my best to write cross platform code. However I have never compiled or wrote anything in Linux. I will however only be using the allegro 5 libs and addon's so they are cross platform. I wouldn't have bothered writing this but it seems that some many of the users on here use Linux
bamccaig said: The only thing you should have to worry about if you're only using Allegro is to keep file paths case-sensitive and use slashes ("/") instead of backslashes ("\\"); both of which any sane person would be doing regardless. Otherwise, Allegro takes care of the platform specifics for you. One thing that is important to think about is line endings when opening text files in text mode. If you create text files, make sure you use Unix line endings. _____________________ |
Desmond Taylor
Member #11,943
May 2010
![]() |
Næssén said: One thing that is important to think about is line endings when opening text files in text mode. If you create text files, make sure you use Unix line endings. I always use "\n" anyway's, That seems to work with both Windows and Linux created test files XD. It's "\r\n" in Windows right? I haven't used that in years so I could be wrong there :O |
Michael Jensen
Member #2,870
October 2002
![]() |
Bruce Perry said: That said, I don't get it - what bell curve did you mean? The curve rating entrants' epicness. Desmond Taylor said: I will try my best to write cross platform code. However I have never compiled or wrote anything in Linux. Biggest thing to watch out for is file name casing, IMO: ah, fuck, beaten. Ooh backslash advice, forgot about that one. Must incorporate. Desmond Taylor said: Just hope one of the rules are not Networking as I only know how to use WinSock and most of you should know that is windows only and that I would need to learn how to do it for Mac and Linux, or I could use a bonus Act if there is one to get rid of a rule With a couple of defines you can make winsocks 2 code that's cross platform for Linux, et al. Even the startup/shutdown stuff, and different include file pathes...
|
Desmond Taylor
Member #11,943
May 2010
![]() |
Yea figures |
Neil Walker
Member #210
April 2000
![]() |
Fishcake said: Time to get a simple framework up. I think framework is a much over-used word. A couple of helper functions makes not a framework Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Dario ff
Member #10,065
August 2008
![]() |
Kewl rules. TranslatorHack 2010, a human translation chain in a.cc. |
bamccaig
Member #7,536
July 2006
![]() |
Næssén said: One thing that is important to think about is line endings when opening text files in text mode. If you create text files, make sure you use Unix line endings.
Nice catch. Desmond Taylor said: I always use "\n" anyway's, That seems to work with both Windows and Linux created test files XD. It's "\r\n" in Windows right? I haven't used that in years so I could be wrong there :O
The standard IO layer in Windows automatically converts your "\n" to "\r\n" in text mode. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
gnolam
Member #2,030
March 2002
![]() |
bamccaig said: Just make sure that any text data files that you create with an editor, etc., uses UNIX line endings and you'll be fine.
Or, you know, just open them in text mode. -- |
Slartibartfast
Member #8,789
June 2007
![]() |
pthread_mutex_lock.c:84: __pthread_mutex_lock: Assertion 'mutex->__data.__owner == 0' failed. EDIT: Whoops, that's what I get for not correctly initializing my variables ---- |
Michael Jensen
Member #2,870
October 2002
![]() |
So I wanted to make a second blog post, but it won't let me. Is the speedhack blog down?
|
Neil Walker
Member #210
April 2000
![]() |
Are there any Bonus rules that aren't simply 'you can ignore rule X'? Or as I like to think, the 'you can go ahead and use the game your wrote over the past 2 months and simply use the bonus to negate any issue' rule Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Michael Jensen said: So I wanted to make a second blog post, but it won't let me. Is the speedhack blog down? It should work. Maybe you are triggering a bug with the contents of the post. Neil Walker said: Are there any Bonus rules that aren't simply 'you can ignore rule X'? Given that the only rules are:
There aren't many options for a bonus rule... If there were some sort of point system that affected winning, then bonus rules could be more like +5 points ... but I'd rather winning simply be based on votes. |
bamccaig
Member #7,536
July 2006
![]() |
gnolam said:
Or, you know, just open them in text mode.
I think text mode is platform specific so I think certain operations will require you to manually handle different EOL -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Johan Halmén
Member #1,550
September 2001
|
This thread title sucks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
Mark Oates
Member #1,146
March 2001
![]() |
Agreed. -- |
|
|