Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 10 11 [12] 13 14 ... 29

Author Topic: My C++ Projects - Tower of Azari v0.31 - "I'm not dead yet."  (Read 51856 times)

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #165 on: November 16, 2009, 08:56:45 pm »

Maybe a little bigger maps, but not too much, or you could wander for a while. I like your game alot!

I however, am having some trouble with my own. And bools. : (

Thanks for the input!

What's the problem?
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.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #166 on: November 16, 2009, 09:04:32 pm »

Maybe a little bigger maps, but not too much, or you could wander for a while. I like your game alot!

I however, am having some trouble with my own. And bools. : (

Thanks for the input!

What's the problem?
Also, I cant de-equip my bow for my club. : (
Logged

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #167 on: November 16, 2009, 09:16:39 pm »

At the moment you have to unequip the item with 'E' and then equip the new weapon with 'e'... or were you already?

I've kinda gotten a little stuck here on the spell thing.  You see, when it makes you choose a spell to cast, it takes a picture of the map first, so that it can re-draw it for targeting before casting.  Unfortunately, I have no idea how I'm going to get it to do the same with the inventory, as the inventory could be starting from either the main screen or being tabbed into from the character sheet... I need to figure out what data-type I can use to hold the map file I use to re-draw the map first, then I can set it up as an argument for the inventory and character sheet functions... it'll be a mess, but it'll do until I get a chance to rewrite them both.
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.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #168 on: November 16, 2009, 09:19:49 pm »

huh. maybe I didnt do that...

Okay, my problem is that it says bool is unexpected. I am trying to do this:
if(words=="read letter"&&bool hasletter==1){
   so on
}
but it says bool is unexpected. : (
Logged

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #169 on: November 16, 2009, 09:25:59 pm »

Assuming you defined hasletter earlier in your code (I.E. Somewhere else in the code, you put something like bool hasletter; or bool hasletter=true; or bool hasletter=false;) you don't have to put bool in the if statement.

[EDIT]: Well, I've just about got the map thing figured out, just need to do a little more reading on the "FILE" structure/class and I should be able to get it done pretty quick.  Of course, nothing can go as expected, and I discovered that I can use a ranged spell item when there isn't an enemy visible (not supposed to do that....), so I'll have to figure out how and when to check that as well...
« Last Edit: November 16, 2009, 09:27:39 pm 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.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #170 on: November 16, 2009, 09:28:21 pm »

Thanks!
Logged

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #171 on: November 16, 2009, 09:33:22 pm »

Actually...well, it now succeeds, but it wont use the commands. Huh.

WHERE ARE YOU ORANGE! WHERE ARE YOUUUUUUUUUUU!!!!!
Logged

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #172 on: November 16, 2009, 09:45:40 pm »

:P  Maybe it's what hasletter is being initiated to?  Unfortunately, without the source, that's about as helpful as I can be...

I've fixed most of the bugs I know about.  I'll be packaging it for a release now, and see about getting it uploaded tonight, if things go well. 

Just a quick heads up though, the items for spells with names longer than 7 characters have random symbols tacked onto the end.  Unfortunately, because I've coded myself into a hole, fixing it would be a needlessly time-consuming process.  So I'm going to ignore it for this release, and work that out during the rewrite.
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.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #173 on: November 16, 2009, 09:46:51 pm »

Cant wait for the spells and magic items!!!
Logged

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.30 - Update 11/16/09, MAGIC!
« Reply #174 on: November 16, 2009, 10:14:10 pm »

    Done!  (Sorta)  The link is in the first post, read on for details...

Version 0.30 Release Notes:
Internal Changes:
  • New item type, "TYPE_MAGIC"
  • New item attribute, "item_spell"

Visual Changes:
  • Fixed gold being drawn only when out of sight

Gameplay Changes:
  • Magic is in!  Press 'C' to cast a spell from memory (if you know any)
  • Use a wand (W-*) or scroll (S-*) item to cast it's spell

For anyone who hasn't been following, here's how magic works.  The game keeps a list of all the spells.  You can buy scrolls and wands used to cast the spells (use them) from the shop on every fifth floor.  Once you've cast a spell enough times (based on your intelligence) you can cast it from memory ('C').

There are a few bugs left, but nothing major.  Just so everyone knows which bugs I've already found, they are as follows:
*Spell items with long names have /s and ~s stuck to the end of them.
*Spell items are red, as though unusable, when 'u' is pressed from the main view.

The spells are loaded from a file, which uses a format somewhat similar to the raw files used in Dwarf Fortress.  I won't bother describing the format here, as the included spell file is heavily documented, and you should be able to figure most of it out from the examples given in it.[/list]
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: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #175 on: November 16, 2009, 11:37:26 pm »

I however, am having some trouble with my own. And bools. : (

XD

So sorry I wasn't around to help Org, maybe later. Don't worry, bools aren't so bad.
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

Alexhans

  • Bay Watcher
  • This is toodamn shortto write something meaningful
    • View Profile
    • Osteopatia y Neurotonia
Re: My C++ Projects - Tower of Azari v0.30 - Update 11/16/09, MAGIC!
« Reply #176 on: November 17, 2009, 12:02:23 pm »

Little detail:  I suggest being able to exit all menus with ESC (like you did with the inventory menu) you could do the same with the "shooting" menu.

-Also, right now you CANT wait.  Add the '5' as a wait in the spot button?
-Look doesn't support numpad.  You have to move with the arrow keys.

The editors are simply great.  They look wonderful and are flexible.  It's all very tidy, including the init files (.ini, .txt).

-In the future you might want to add a description for items so you can look at them an know what a W-Minor He/ (1) is... :P

-Adding the weight in kg makes it realistic.  Nice.
Something else you migth wanna consider adding is the ability to close doors.   This is always a nice component to roguelikes.  To stop silly creatures from following you.  At that point, you will also be able to add traps and stuff with doors.

I haven't looked very much at the code... If you want my humble opinion on anything just tell me...

This is looking better by the minute.  Very tidy and proffessional. :)
Logged
“Eight years was awesome and I was famous and I was powerful" - George W. Bush.

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: My C++ Projects - Tower of Azari v0.30 - Update 11/16/09, MAGIC!
« Reply #177 on: November 17, 2009, 12:37:03 pm »

I will try this out later. I'm playing around with classes right now, making tons of progress on the learning front.

It sound great, I look forward to messing around with it.
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: My C++ Projects - Tower of Azari v0.30 - Update 11/16/09, MAGIC!
« Reply #178 on: November 18, 2009, 04:21:17 pm »

Thanks for all the input everyone.  Unfortunately, the cord for my laptop died this morning, so I'm writing this with the last few minutes of battery life.  Until I get a new cord, this and pretty much everything else computer related is going to have to be put on hold... I have every intention of picking it back up as soon as I do get a new cord though.

It might be a week or two, or I may be able to get mine fixed later today or tomorrow, I really don't know for sure yet, but as soon as I figure something out I'll try to get access to another computer long enough to get you guys an update.

Thanks again, looking forward to resuming this ASAP...
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: My C++ Projects - Tower of Azari v0.30 - Update 11/16/09, MAGIC!
« Reply #179 on: November 18, 2009, 10:57:08 pm »

Noooo! Timmeh, my programming buddy! You can't be dead! You just can't!

Sorry.
I get weird sometimes.
Well, most of the time.

I hope it gets fixed soon.
ToA waits for no one!
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
Pages: 1 ... 10 11 [12] 13 14 ... 29