Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - winner

Pages: 1 ... 15 16 [17] 18 19 ... 45
241
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 08:18:03 pm »
<cstdlib> is the library that contains rand() and srand( )
<stdlib.h> is a synonym.

if you have those libraries then it should compile.  I don't have enough knowledge to fix most problems

242
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 06:56:21 pm »
Am I supposed to see this?
Spoiler (click to show/hide)
Yes, that means that program works (I should probably add a line to take care of the periods accumulating).
I don't know what is making the main program not work for you.

243
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 05:46:57 pm »
hmm so wind() isn't running.  Print() is running just fine I think. Here is a simpler version, could you try running it to see if the problem remains? (a screen shot of this one would help).
thank you very much for your help, I would love an example of how to do color.
Spoiler (click to show/hide)

244
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 03:14:21 pm »
ok now r and R control the wind speed.

To make wind erosion interesting I would have to make a wind direction for each square instead of the whole map.  Sounds fun.

Color would be awesome, I tried the ansi color codes but they didn't work with this method. So there is something wrong with the display code? Can I see a screenshot of the latest version (not) running?

245
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 10:00:05 am »
Spoiler (click to show/hide)

Is that what you were asking for?

Yes thank you, and it works for me...
For that small program, pressing 'q' exited the program, while for the larger one it does nothing?

246
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 02:46:53 am »
paste the code fore the main program here, I might have made a mistake in how I put it up.


247
Creative Projects / Re: sand dunes *updated*
« on: January 15, 2010, 01:28:07 am »
is capslock on?

This program uses the same method as the sand dune program.
It gets a character and then prints it in the upper left of the screen.
'q' is quit.
Code: [Select]
#include <curses.h>
int main()
{
nodelay(initscr(),1); // don't wait for user input
noecho(); // don't show typed characters on the screen
char inchar;
while(inchar !='q')
{
inchar = char(getch());
if(inchar != ERR)
mvaddch(0, 0, inchar);
}
echo(); // turn echoing back on before exiting
endwin(); // end curses control of the window
}

248
Creative Projects / Re: sand dunes
« on: January 14, 2010, 09:24:25 pm »
How exactly do I run this thing?
I copied it into Codeblocks and compiled it,
 but input doesn't seem to work.
I'd be willing to colorize it for you if you wanted.
I've already mostly done it.
Might "getch" be doing different things on your computer? Since I don't know much I'm relying on google.

[edit] water works now and it is glorious!
I put it up.

249
Creative Projects / Re: sand dunes
« on: January 14, 2010, 07:02:45 pm »
I would really like you guy's ideas on how I should do water.


edit trees are in, they wither without water.

250
Creative Projects / Re: sand dunes
« on: January 14, 2010, 06:13:45 pm »
Thank you for the bug report.
sorry planting does nothing yet. I was planning on adding trees but I want to make water work properly first.
'?' prints the controls.  t and r do what they intended I just labeled them wrong. To understand digging, comment out sand in the init function and uncomment out that first section in the print function.  It will show you what the water sees.

251
Creative Projects / Re: sand dunes
« on: January 14, 2010, 02:14:43 pm »
I added water. it's not very realistic but it was the best I could come up with so far.

252
Creative Projects / Re: sand dunes
« on: January 14, 2010, 11:30:08 am »
Oh wow, this looks very nice.

I can't get it to work though.
Fro some reason, nothing happens...
at which stage does nothing happen? when you press keys? when you try to run the program?

253
Creative Projects / Re: sand dunes
« on: January 14, 2010, 11:28:45 am »
copy the code
"nano sand.cpp"
paste
"ctrl o"
"enter"
"ctrl x"
"g++ sand.cpp -lcurses"   if this step doesn't work install xcode
"./a.out"

254
DF Suggestions / Re: Feces and Urine
« on: January 14, 2010, 01:02:18 am »
Which means an .ini option.

And seriously, the game should eventually be moddable enough that even if Toady never implements poo, someone could code up a mod that does in one afternoon.

Give dwarves a new auto-task (like eating and drinking) which happens about as often as eating, and causes them to go to a custom workshop called a latrine.  If they fail to complete this task, they get a very bad thought.  If they do complete the task, some waste is created which flows down a hole (unless there isn't enough room).  Make the waste have the desired properties, and mod other workshops so that they can use it for certain tasks.

Done.
Actually most of that IS possible with utilities right now. Have you seen the one that adds magic?

255
DF Suggestions / Re: Feces and Urine
« on: January 13, 2010, 09:33:28 pm »
Wether you agree with them or not you just said they exist and their game will be ruined.  If this is so it seems fair to only add it if can be done in a way that does not ruin someone's favorite game.

Pages: 1 ... 15 16 [17] 18 19 ... 45