Last attempt; help with RTS programming
Ok, I've attempted to post this question many times before, and lots of people have tried to help, but I still just cant get it. I've been using the library that comes with the book RTS game programming, and its worked fine, Untill I bought a new video card (GeForce 256). Now the picture is garbled and nothing works. Even the code from the book produces the same effect.
-look at http://www.123.net/~sourmosh/Image2.gif to get an idea of whats wrong. Notice the text is fine, but all graphics are messed up.
-You can get the library at http://www.123.net/~sourmosh/library.zip I dont know if I can do this, but I dont care. The author hasnt answered any of my emails. Unzip this to c:\library
-You can get my (terrible) source code at http://www.123.net/~sourmosh/ssource.zip its really messy and ugly, I made it all in 2 days, but it worked on my old video card, and it doesnt anymore. This is just the game specific code, and all the drawing stuff is in the library.zip
I hope someone can help me. I know this library is pretty stinky, but Im comfortable with it, and I've got a new game completey designed, the map editor done, and a few artists ready to go; I dont want to rewrite everything. But I will if I have to.
UPDATE: Most people have said the pitch is wrong, and Im pretty sure thats it. I just cant fix it, I've tried but Im not getting it. If you can show me where I need to change it, I'd really appreciate it.
Thank you
Dave
Edited by - Ratman on 2/1/00 1:58:54 PM
The links do work, but they''re case sensitive...
http://www.123.net/~sourmosh/Image2.gif
that''ll work...
I think the problem might be when drawing or loading the bitmaps into the surfaces, I have that RTS book, but right now I dont remember how it loads the graphics, but apparently, it''s using the wrong Pitch to draw from the bitmap to the surface... Im not sure if the pitch was hard coded or extracted from the surface, so check what''s going on there...
good luck! (If I dont forget, I''ll check the book when I get home and post another reply)
Luis Sempe
visual@guate.net
http://www.geocities.com/SiliconValley/6276
http://www.123.net/~sourmosh/Image2.gif
that''ll work...
I think the problem might be when drawing or loading the bitmaps into the surfaces, I have that RTS book, but right now I dont remember how it loads the graphics, but apparently, it''s using the wrong Pitch to draw from the bitmap to the surface... Im not sure if the pitch was hard coded or extracted from the surface, so check what''s going on there...
good luck! (If I dont forget, I''ll check the book when I get home and post another reply)
Luis Sempe
visual@guate.net
http://www.geocities.com/SiliconValley/6276
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement