Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 19 20 [21] 22 23 ... 29

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

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/19/09, tech-demo!
« Reply #300 on: December 23, 2009, 11:39:03 pm »

Today was total chaos... went to do random work around the house for a family friend this morning and afternoon, so that I could do some Christmas shopping after dinner.  I got home a little before dinner, but my brother decided we were having a guy's day, so I didn't get anything done then either.

I've looked at my code, and I've done a bit more setup on my computer, but no real progress... still thinking about the rarity thing though, and I have next to nothing to do tomorrow.
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.302 - Update 12/19/09, tech-demo!
« Reply #301 on: December 24, 2009, 12:02:02 am »

I wonder how you will handle this.
I look forward to your next implementation with interest, as always.

If you aren't sure what to do, or which solution is best, just think about necessity and needs.
Make a system that can do everything you think it should, and avoid mediocrity.
I'm being a hypocrite right now, but I am speaking up to you,
 since you show skills that I lack.
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

alfie275

  • Bay Watcher
    • View Profile
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/19/09, tech-demo!
« Reply #302 on: December 24, 2009, 09:07:53 am »

Maybe the tag could be linked to how many times it is placed in the vector?
Logged
I do LP of videogames!
See here:
http://www.youtube.com/user/MrAlfie275

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/19/09, tech-demo!
« Reply #303 on: December 24, 2009, 09:25:49 am »

@Outcast Orange - Thanks!  Although I'm not 100% sure what exactly those skills are :P


Maybe the tag could be linked to how many times it is placed in the vector?

This was my first thought, but it might make map generation take a bit longer, especially since I'd have to have it add non-rare rooms multiple times so that the other ones could actually be rare.  That being said, this just gave me an idea that might speed it up... I just need to find a way to remove all copies of a room in the vector when one doesn't fit, that way it doesn't bother checking the same room multiple times... I'm off to research vector functions again :P

If I can figure this out it'll be easy to add.  Normal rooms will be added ~5 times, and then when modding I can specify a rarity 1-10 (I supposed 0, but then it just wouldn't show up at all :P) for the number of times the room would be added to the list.  Actually, thinking ahead, would it make more sense from a modder's point of view for a high rarity room to show up often or rarely?
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.302 - Update 12/19/09, tech-demo!
« Reply #304 on: December 24, 2009, 03:09:59 pm »

I wouldn't translate the ten upside down, since that seems unnecessary.
Why don't we just do something like this:

[chance:10]

I think there may be a better way to do it then multiple chances in the vector.
How about this:
Standard rooms (with chance = 10) will show up in the normal method,
but for a rarer room to show up, it will have to survive a 50/50 test the number of points below 10.
So a room with a rarity of 5 would need to survive 5 rolls to make it in.
You can make it a different percentile chance to tweak for perfection,
So maybe 75% or 80% would be a better number.

That's the fastest and easiest way I can think of.

EDIT:

You're much better off on the technical side of programming.
My code tends to be less concrete and a bit more abstract.
Your game uses underlying complex systems, while mine is fairly simple.
« Last Edit: December 24, 2009, 03:11:58 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

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/19/09, tech-demo!
« Reply #305 on: December 24, 2009, 03:49:30 pm »

That works!  In fact, I've already got it working (untested, but it doesn't crash, so theoretically).  The only issue, even if a rare room is the only one that fits in a given area it may still not be placed depending on it's rarity, resulting in empty spaces.  I've added the [rare:#] tag, where the number is a percentage (1-100) chance a room will be placed.  It defaults to 100%, so the current file will work exactly as before, but adding the tag allows you to decrease the chances of the given room being placed.
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.302 - Update 12/19/09, tech-demo!
« Reply #306 on: December 24, 2009, 04:13:26 pm »

Don't worry about empty space,
your smaller common rooms should fill in the empty spaces.

I think the game will be much more interesting with rare rooms.
You should make a dozen more, and I will make a dozen more.
Then we will have some interesting geography to look forward to.

I wonder why this sort of thing doesn't show up more often,
as it's a brilliant idea.
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.302 - Update 12/19/09, tech-demo!
« Reply #307 on: December 24, 2009, 04:23:57 pm »

Thanks!

I'll see what I can do.  I've almost got the 'L'ook function working to display the description of a room working, but it crashes seemingly at random, and I remembered that my function for drawing text in a box doesn't deal well with new-lines, so I need to fix it to display the logs correctly, but that shouldn't take too long.

[EDIT]:  So much for that, this is a bit trickier than I thought :P  I completely forgot how horrible my wrapping code is, so I've broken it into two functions, one to draw the text within a square, and another function that splits the text at the end of a line.  It still doesn't account for newlines, but other than that it seems to be working.  I may end up making the second function recursive, have it call itself on sections split by a newline or something...

[EDIT2]:  I am still here, but due to general holiday stuff I haven't had a lot of free time lately.  Anyways, I've finished items, equipment and message related stuff completely, and will start on enemies next time I have some free time.
« Last Edit: December 28, 2009, 04:47:29 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.

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/31/09, excuses
« Reply #308 on: December 31, 2009, 02:18:47 pm »

There is next to no real progress on my programming stuff, but I do have a decent excuse.  One of my Christmas gifts was the repair kit for my Xbox 360, so I've been reading up on the repairs over the last few days, and I'm currently leaning over the half-deconstructed console to type this.  I've hit a bit of a snag on the repairs, since I don't have the right Torx Driver (Need a T-8, smallest one I have is T-10).  I've been able to get all but one of the T8 screws with a really small screwdriver, but one of the ones holding the RF board (the thing with the power button) is stuck.

On another note, I'm about ready to murder whoever fixed it last, as I've found several mistakes and sloppy jobs... screws only half in, the fan isn't wired correctly, etc...

Anyways, I have gotten the enemy class typed up in between repairs and games, so there is a little progress anyways...
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.302 - Update 12/19/09, tech-demo!
« Reply #309 on: December 31, 2009, 03:01:17 pm »

The panel with the power button comes off I thought.
I have multiple panels and have changed them a few times.
Doesn't it just pop off like a dandelion top?
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.302 - Update 12/19/09, tech-demo!
« Reply #310 on: December 31, 2009, 07:16:49 pm »

Good point, the one with the actual button does just pop off.  I just didn't describe it well though, I meant the board that has all the electronic pieces for the power button.

Anyways, I managed to get it off, although I'm still going to need to get a torx driver to get them all back in.  Unfortunately, whoever fixed it last really f'ed it up.  Half the wires are held to the motherboard by blobs of glue or small, messy piles of solder.  The fan doesn't actually come off the motherboard like it's supposed to, cause whoever fixed it didn't bother to wire it through the plug, and instead just glued some new wires in place and cut the olds ones off.

I think the heat-syncs are from a different model too, cause they don't look like the ones in the repair guide I'm using, and the model matched everything else.  There's a lot more parts than I suspected, but if I can get past some of the previous repairman's mistakes it shouldn't be too much longer.

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.302 - Update 12/19/09, tech-demo!
« Reply #311 on: December 31, 2009, 10:26:03 pm »

I know it's probably more complicated than a simple answer,
 but do you think that if I open mine up, and put it back together again,
 it will stop having its disc tray problems?
Or does your book specifically diagnose problems?
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.302 - Update 12/19/09, tech-demo!
« Reply #312 on: January 02, 2010, 01:02:33 pm »

Mine is RRoD, so the problem is that the heat-syncs were loose.  Basically, I got a repair kit with all the washers and screws I need to put them on a little tighter.  The disk tray thing is probably a problem with the DVD drive, but I only really know what I've found and read online, so I can't really say anything about repairs...
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.

Rooster

  • Bay Watcher
  • For Chaos!!!
    • View Profile
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/19/09, tech-demo!
« Reply #313 on: January 02, 2010, 03:07:20 pm »

Played 1.3 for a while.
The game crashed on my punch.
Just sayin
Logged

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.302 - Update 12/19/09, tech-demo!
« Reply #314 on: January 02, 2010, 11:18:40 pm »

Hey Outcast. Sorry Ive been gone so long! Ive had exams and holiday. :I

Tomorrow I will be on. The only thing is I still was never able to get curses or glut. :I
Logged
Pages: 1 ... 19 20 [21] 22 23 ... 29