Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 81

Author Topic: Cloud Scream > Development on Pause  (Read 82503 times)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: WorldJem: New Visuals!
« Reply #30 on: October 06, 2009, 07:41:40 am »

I couldn't launch it. It says me that it's not setup correctly. Should I have something else?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: New Visuals!
« Reply #31 on: October 06, 2009, 07:44:48 am »

Try this:

Here's the newest (and most compatible) version.
The graphics are better than before also:


http://www.mediafire.com/download.php?kevwrf3z0dw

It should run for everyone now!
« Last Edit: October 06, 2009, 07:48:21 am by Outcast Orange »
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: WorldJem: New Visuals!
« Reply #32 on: October 06, 2009, 07:53:28 am »

Trying the new version now... I'll edit in a second.

If you still need the old version, here it is.  There are a few new files in there, from my rather sloppy conversion to a Code::Blocks project, but it's all there.

[EDIT]:  Awesome!  Looks a lot better!

@Deon - You use the numpad.  Enter a 0 for the list of commands.
« Last Edit: October 06, 2009, 07:58:22 am by timmeh »
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: WorldJem: New Visuals!
« Reply #33 on: October 06, 2009, 07:55:51 am »

How to move? I typed "up" and it started flickering.

P.S. OK, I see. It endlessly loops with an output of correct commands, thus endlessy scrolling the screen. There should be a way to stop it.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: New Visuals!
« Reply #34 on: October 06, 2009, 08:25:21 am »

How to move? I typed "up" and it started flickering.

P.S. OK, I see. It endlessly loops with an output of correct commands, thus endlessy scrolling the screen. There should be a way to stop it.

That is definitely a bug.
Type "10" and press enter to take control of orange.
Then you can move.

The screen should never scroll endlessly, that would be a bug.
Unless you mean that is scrolls whenever you add a command.
That is what it should be doing right now.
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: WorldJem: New Visuals!
« Reply #35 on: October 06, 2009, 08:39:04 am »

When I start the program and input something wrong it shows me the "true" commands but in a constant loop which locks up.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: New Visuals!
« Reply #36 on: October 06, 2009, 08:49:21 am »

What are you typing? Numbers should work.

I haven't tried it since I updated the graphics, but I'll see what I can figure out.

Also, I'm installing PDCurses as we speak.

EDIT:
Okay, I've gotten it installed, and I'm re-writing bits of my code to utilize it.

Edit:
It only took about five minutes to rewrite the code, but it doesn't display the colors anymore.
I searched the internet for hours trying to find an example of pdCurses color changing that I could understand.
Everyone over does it. All the examples are complicated.
I just want an example where it prints a red zero using pdCurses.

I know that this doesn't work, but why?

init_pair(1, COLOR_BLUE, COLOR_BLACK);
attron(COLOR_PAIR(1));
mvaddch(drawy,drawx,letter);
attroff(COLOR_PAIR(1));}//core

Any ideas?
« Last Edit: October 06, 2009, 12:26:07 pm by Outcast Orange »
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: I want color!
« Reply #37 on: October 06, 2009, 01:47:17 pm »

More information:

If you compile the code below, it will draw the red zero fine, but the special character (219) will still be grey.
I have to find out why it draws odd characters default but everything else correctly.

Code: [Select]
#include <curses.h>

int main(void){
initscr();
start_color();
init_pair(1, COLOR_RED, COLOR_BLACK);
attrset(COLOR_PAIR(1));
char letter;
letter = 219;
mvaddch(3,3,letter);
mvaddch(3,4,'0');
refresh();
getch();
endwin();}
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: WorldJem: I want color!
« Reply #38 on: October 06, 2009, 02:01:58 pm »

Well, I have no idea why, but apparently the variable has to be an integer, not a character... really weird, but it worked for me...
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: I want color!
« Reply #39 on: October 06, 2009, 02:11:10 pm »

What do you mean? It's drawing the character fine.
It isn't drawing the integer fine.
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: WorldJem: I want color!
« Reply #40 on: October 06, 2009, 03:22:03 pm »

Code: [Select]
#include <curses.h>

int main(void)
{
    initscr();
    start_color();
    init_pair(1, COLOR_RED, COLOR_BLACK);

    attrset(COLOR_PAIR(1));
    int letter = 219;
    mvaddch(3,3,letter);
    mvaddch(3,4,'0');

    refresh();
    getch();
    endwin();
}

That works for me.  All I really changed was the variable type of the 'letter' variable to int... not sure why that works or if it only works for me, but both the symbol and the number are red for me...
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: I want color!
« Reply #41 on: October 06, 2009, 05:02:25 pm »

Thank you so much for that insight.
I've been tearing my hair out all morning.
Half way through my science test, I found myself thinking, "BUT WHY?!"
Finally a good solution.

I'll get a full version of it up and running with the new curses system.
It should be way more better now.
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: Soon to be in Curses!
« Reply #42 on: October 06, 2009, 06:30:53 pm »

This code is supposed to draw the 3 and the block as grey, and the other block as dark grey:
Code: [Select]
#include <curses.h>
int letter;

int main(void){
initscr();
start_color();
init_color(COLOR_WHITE,500,500,500);
init_pair(1, COLOR_WHITE, COLOR_BLACK);
attrset(COLOR_PAIR(1));
letter = 219;
mvaddch(3,3,letter);
mvaddch(3,4,'3');
refresh();
init_color(COLOR_WHITE,200,200,200);
init_pair(1, COLOR_WHITE, COLOR_BLACK);
attrset(COLOR_PAIR(1));
letter = 219;
mvaddch(7,3,letter);
refresh();
getch();
endwin();}
Figure out why that won't work.
It isn't completely crucial, but it would make this game much more simple to add to later.
I'm going to use a workaround I found, and get a running version up.

Thank you for the help timmeh!

EDIT: I've found out that it always uses the last color value given to it.
Change the bottom values and both will reflect.

EDIT: That's not true, if they are both the same color (COLOR_WHITE) the second one is ignored.

EDIT: Okay, so I realized that it's just ignoring the init_color commands...
I'm not sure how we are going to do shades of grey anymore.
I guess I need to know why RGB values aren't working.
« Last Edit: October 06, 2009, 06:39:36 pm by Outcast Orange »
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: WorldJem: Soon to be in Curses!
« Reply #43 on: October 06, 2009, 06:43:09 pm »

These are the only colors that Curses supports initially:

COLOR_BLACK   0
COLOR_RED     1
COLOR_GREEN   2
COLOR_YELLOW  3
COLOR_BLUE    4
COLOR_MAGENTA 5
COLOR_CYAN    6
COLOR_WHITE   7

I need to be able to either modify these colors, or make more some how.
I'm really liking some parts of curses, but a lot of its features seem a little strict.
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

deadlycairn

  • Bay Watcher
    • View Profile
Re: WorldJem: Soon to be in Curses!
« Reply #44 on: October 06, 2009, 06:52:39 pm »

Have you looked at Libtcod? It's made with game designers in mind, and it's got lots of support for colours. (I cannibalised the old ASCII Dungeon code and turned it into Libtcod, never went anywhere with it though)
Logged
Quote from: Ampersand
Also, Xom finds people that chug unidentified fluids pleasing.
Quote from: Servant Corps
Ignorance of magic does not give scientists the power to resist fireballs.
Pages: 1 2 [3] 4 5 ... 81