RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Tue Jul 22, 2003 2:36 am    Post subject: I'm back.. and I've got problems...... [quote]

lol, well with that said......

I would like to know how you would handle this situation:

I want to have my tile engine be more robust, by creating
'instances' of the tile class dynamically, depending on the loaded
tileset.

my tileset file is simply a text file that looks like this:
Code:

[BASE]
f0_nw.bmp
f0_n.bmp
f0_ne.bmp
f0_w.bmp
f0.bmp
f0_e.bmp
f0_sw.bmp
f0_s.bmp
f0_se.bmp


basically, what I want my engine to do with this is:

1. group tiles into layers based on BASE, CEIL, and OBJECT 'tags'
2. read the bitmaps into tile class

I have been trying to get this to work.. alas I cannot.

I'm using msvc 6 standard & c++ with DirectX 8

any help will be most appreciated.

either post here, or email me at ccps@SoftHome.net
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Tue Jul 22, 2003 9:05 am    Post subject: [quote]

Firstly I really can't comprehend why you don't take the time to participate and become a part of this community outside times of dire need for help on your own part, we're a friendly bunch quite much like an Irish family "there's always room for one more". Just saying it would be nice to have you stick around.

But your problem can be solved so easily that I hardly understand why you bother asking, but none can even do your homework for you proberly without knowing how you want it solved, I could probably hack up a working but not industrial strength version in something like half an hour
but since I have no idea if you would want it using ifstreams std::string and STL containers or using FILE* strcmp and plain vanilla arrays it wouldn't be much use.

And well conceptualy there's not really much to discuss the pseudo code would be:

Open File
Read Each Line As row
IF row == some_section THEN current_section = some_section
ELSE current_section.add_tile( row)

Clarify and maybe someone can give a proper answer
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Thu Jul 24, 2003 5:07 am    Post subject: [quote]

DrunkenCoder wrote:
Firstly I really can't comprehend why you don't take the time to participate and become a part of this community outside times of dire need for help on your own part, we're a friendly bunch quite much like an Irish family "there's always room for one more". Just saying it would be nice to have you stick around.

But your problem can be solved so easily that I hardly understand why you bother asking, but none can even do your homework for you proberly without knowing how you want it solved, I could probably hack up a working but not industrial strength version in something like half an hour
but since I have no idea if you would want it using ifstreams std::string and STL containers or using FILE* strcmp and plain vanilla arrays it wouldn't be much use.

And well conceptualy there's not really much to discuss the pseudo code would be:

Open File
Read Each Line As row
IF row == some_section THEN current_section = some_section
ELSE current_section.add_tile( row)

Clarify and maybe someone can give a proper answer



As for staying around...I'm around here as much as I can be.
My life is quite busy, I would LOVE to be able to go online, and
practically LIVE here as a lot of you seem to do.
Alas, I can't afford that much time out of my day.
Years ago, I used to spend 35+ hours straight online in dev chat rooms,
on forums, etc.. etc..
I didn't get anything done, and my parents got really mad.
They said that if I didn't stop 'sitting' online, and not working hard on my
career, that I would lose my net connection!!!
Anyway, I wound up forming a team, and we worked hard for a few weeks..got soo damn close to beta release that we could smell it!
A few details in the ddoc were not clear enough for some of the team,
which in turn created nothing but chaos amongst us, there were IRC FIGHTS! ...after server hopping about 16 times to get order back in my control...
My team was 38 people around the world, it stayed that way for 2 weeks, then everything went to sh*t. My team dropped to 7 after all the fighting,
and all, anyway, I had my design & artowrk stolen from me, and used/published by Xtreme Games LLC (no Xtreme didn't steal it, someone else did...and made a game with it, and published it through Xtreme)

Well, this was too much for me stand.
I went offline, bought a few new dev books, and began my lone-wolf journey.
I got neck-deep in the DirectX end of stuff, before learning c++
THIS WAS A VERY VERY BAD THING!
Anyway, after not understanding any damn thing that I was typing from the books, and much aggravation with getting around msvc intro edition...
I thought it was all for nothing.
read: I GAVE UP!!!

So, I went back to my roots, my trustly ol' Commodore 64!
I sat down and coded an entire action platformer in about 19 hours.
yes, it only had 3 levels and the animations weren't great.. but hey!
It ran, it was fun, and my family loved playing it.
I had a hit on my hands!
Well, I booted my PC once again...I ran QB, (all I had was qb 1.0 at the time)
and I set out to recode my little action platformer.....
this did NOT work, I couldn't do even half of it.
QB didn't have the MLX stuff that I had used (now I know that I can use ASM, but then I didn't)
Well.. I got depressed..I deleted everything off of my PC, except the OS.
and I began drawing stuff in mspaint (best art program I had then)
I drew, and I drew, after awhile I had drawn up MOCK-LEVELS of games that didn't exist!!!
It was inspiring to imagine playing the "games" that I had designed in mspaint...
well, once again, I installed QB (got it from the Win CD)
and I read the help index, and I mean EVERY SINGLE LINE OF TEXT IN THE THING!
I was like a sponge, and I absorbed so much that I thought that I could rule the world with my QB powers! (hahahahaha)

yeah, well...I made some ascii rinky-dink games that consisted of logical puzzles, and lame "PLAY" music clips I made.
I began to write a Zork-like game based on StarWars...this went well!
I got my cousins (when they lived close by) to help out, (We were all StarWars nutz!)
I made a cool little 5 mission, 50 room game in QB1, no graphics, all text..just like the original Zork!.. the commands were handled VERY poorly!
heh, stuff like IF cmd$ = "Take Blaster" THEN gosub TakenBlaster
(terrible code..if you didn't know what you should type, you couldn't play!)

well..after trying for weeks to get the command handler to be more efficient, and failing....I tossed it aside into that "library" (you know, the place where you store old code, never reopen it, but never delete it)

Okay, so now what? I started trying to redraw my mock-levels using the PSET statement....ran outta memory quickly.
(320x200 PSET lines is not a very good way to code graphics!)

I read about the bsave / bload stuff.....learned it.
I drew little parts of the mock-levels in 64x64 sections, (still using PSET, but using bsave to save the image and stuff)
well, after the first mock-level.. I was inspired to make it.. here we go again.

Well, I got static images drawn, a static player I could "move" (had an ugly ass black square around him though, cause I didn't know/understand transparencies)

Anyway, LOOOOOOOOONG story short:

I kept trying, I finally got back into c++, learned it,
Wrote tons of apps, wrote a few simple games for myself,
learned more,
learned more..
got into windows..quit.. repeated whole process 5 times!!!!!

here I am today...

well.. gotta sleep.. more next time.
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Thu Jul 24, 2003 8:45 am    Post subject: [quote]

Oh, that's a sad bewildering and tragic story, seems like you've been through some rough turns.

Sadly enough I still don't know how you want the problem solved so I can't be more specific than in my first post.
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum