:) norman_nomain may be able to come up with the finest ive seen the pics for the peasent and the knight of the dragon may i say it looks 50 X better than starcraft and for fantisy if what ive seen is good i cant imagine what he can come up with :)
Printable View
:) norman_nomain may be able to come up with the finest ive seen the pics for the peasent and the knight of the dragon may i say it looks 50 X better than starcraft and for fantisy if what ive seen is good i cant imagine what he can come up with :)
Okay... can you upload the GFX to the website?
And also Zaei could you email every1 with the account stats, I don't really have the time right now.
Zaei, the welcome page is AWESOME!
Just the kind of subliminal message we need to send.
Okay - Norman_Normein and WazupGuys:
I need to make sure the GFX are the right size. If you want you can make 'em proportionate to the tile sizes (no res. has more view so it is fair to all resolutions):
1024x768 - 64x48
800x600 - 50x37
640x480 - 40x30
So make sure there are 3 gfx resolutions for the graphics and it will be set.
since we go to the same school i can see what he has on paper over the weekend and hes going to convert them to bitmaps so i we can use them :)
cant we use the same size file just when it comes into ddraw that it gets chaged to the screen resolution type we could build a function to do that
If We Do Make A Second Version What Would We Change Or Add (Would We Add A Race , etc.) :)
I shall try and push out a DLL that does the job for now asap, it will probably be a longer way than in vb due to there being no CreateSurfaceFromFile function in C++ Direct X. I know why one part of it isnt working and im busy sorting it now. The other part is a bummer.
Whats the url for this site as i have the user/pass but dont now the url.
The DLL Is almost fixed for one part, i have almost done the loading of an image to a surface where u can specify a X and Y to load from along with Width and Height, the Blitting shall come soon too (hopes).
we should use some code im getting from the internet in api so that we dont have to chage screen resolution we can check the resolution then use a case or if then statment so its not like sentience (im not trying to dis them im just saying i dont like that it changes the resolution on my screen) :)
I've already got code that checks and changes the resolution accordingly. If you are already in that resolution (640x480x16) the resolution will not change.
Then at the end of the program it changes it back.
System.dll - Release Version 0.1
======================
Yuppers, it's that time, the first build of the System.dll is available. At the moment you are required in vb to do something like this:
Dim DDraw As DirectDraw7
Dim DDSurface As DirectDrawSurface
Set DDSurface = DDraw.CreateSurface(params);
Then :) the fun part, you can then use the function in the System.dll to load a bitmap file, you can pass the x and y of where to load along with the height and width.
The zip shall appear on the ftp soon with a quick vb demo :D
The Blitting part is almost done.
Good work, Psyvision!!
Bummers, can any of you fix this:
Here is the VB and C++ Prototypes for the function:
Please can you check that these are ok, then the main error here is that the following function:Code:int SystemLoadBitmap(IDirectDraw7 * dd, char *szFilename, IDirectDrawSurface7 * ddsSurface, int x, int y, int width, int height)
Private Declare Function SystemLoadBitmap Lib "System.dll" (ByRef dd As DirectDraw7, ByRef Filename As String, ByRef ddsSurface As DirectDrawSurface7, ByVal X As Long, ByVal Y As Long, ByVal width As Long, ByVal height As Long) As Long
Is returning -2 thus the error is that it is failing to load the image. Once this is fixes the DLL is usable. I think that the error is coming across from VB because linking to the dll and using it in C++ works fine. I can mail anyone who needs it code for the C++ and VB demos of using the function along with the DLL source as long as they can fix the error :DCode:int SystemLoadBitmap(IDirectDraw7 * dd, char *szFilename, IDirectDrawSurface7 * ddsSurface, int x, int y, int width, int height)
{
HDC hdcImage;
HDC hdc;
BITMAP bm;
DDSURFACEDESC2 ddsd;
HRESULT hr;
HBITMAP hbm;
hbm = (HBITMAP) LoadImage( NULL, szFilename, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION);
if (hbm)
{
ddsSurface->Restore();
hdcImage = CreateCompatibleDC(NULL);
if (!hdcImage)
return -1;
SelectObject(hdcImage, hbm);
GetObject(hbm, sizeof(bm), &bm);
width = width == 0 ? bm.bmWidth : width;
height = height == 0 ? bm.bmHeight : height;
ddsd.dwSize = sizeof(ddsd);
ddsd.dwFlags = DDSD_HEIGHT | DDSD_WIDTH;
ddsSurface->GetSurfaceDesc(&ddsd);
if ((hr = ddsSurface->GetDC(&hdc)) == DD_OK)
{
StretchBlt( hdc, 0, 0, ddsd.dwWidth, ddsd.dwHeight, hdcImage, x, y, width, height, SRCCOPY);
ddsSurface->ReleaseDC(hdc);
}
DeleteDC(hdcImage);
DeleteObject(hbm);
return 1;
}
else
{
return -2;
}
}
[email protected]
Maybe in your LoadImage call, one of the flags should be LR_LOADFROMFILE. MSDN says that if that flag isnt set, it will think it should be loading from a resource, and szFilename is the resource name.
Z.
That will be why, ok, um well in vb its loading not from a resource and i can change the last flag to what is required (said by Zaei)
And Psyvision, because of the ongoing problem with Vuen and his colour-changing (realtime) RTS thing, it would be nice if there was a function that took all colours in a surface and changed them to another colour, eg:
Code:rc = sChgCol(RGB(255,0,255), RGB(255,255,255))
Gotta get the basics going first, i think basically i can use Get and SetPixel, not sure, i fixed one error and another appears OUCH
Hey guys.
Sorry, I wasnt here yesterday I dropped dean on my bed when I got home and didnt get up until today at eight. But as soon as I ate a couple pieces of brad I got to work and finished.
So far I've done 3 characters so far out of the 5 I plan to do today, they are scanned and soon to be mailed to wasupguys they are the peasant, the knight of the blade, and the monk. If Ill email it to you if you want. wasupguys has seen my work and he says its good. I dont what you could do with my drawings except movie parts.
I truly dont konw what your limits are so I just give my oppinion on what would look good in an RTS that I would enjoy playing:)
I would love to see the GFX that you have made. Please send them to me ([email protected]) or have wazupguys send them to the same address.
Sas, thats what the web site thing is for. Post EVERYTHING there, so everyone can look at it.
Z.
i got two today i sent sastrex one i think and then i cleaned it up :)
what happend to me uploading how do i were do i
Sorry I havent replied, I just got my internet connection back :rolleyes:
Anyways I'm going to look at the pictures wazupguy's sent me. See ya all tomorrow!
Sas,
Have you just blatantly ignored the eMail I sent you?
Big Problems - Because of the way that direct x workd in visual basic compared to C++ i cant get the dll to work, this is a big bummer :D i think its to do with some COM and the way that there are these in C++:
IDirecDrawSurface
LPDIRECTDRAWSURFACE
And:
DirectDrawSurface
In vb which is annoying.
Hmmm....
You emailed me?
I'll go take a look, my ESP (email service provider) may have deleted it on me though :rolleyes:
A couple of questions. Are we going to be able to select a group of units? How will this be stored? Will there be a group leader? Do we know how food and gold and such are going to work? Also, What style of gameplay do we want? Should it be "Player is completely controlling the units", or "Player is the general, but units have some thought"? Hopefully number 2, because ive got some fun ideas wandering through my skull =).
Z.
We'll have multiple units (select units & Ctrl+0-9 to group units) then press 0-9 to get them back. The mounts will be absent minded as will the "critters". Units will be (for now) #1, but hopefully it will change. Also the group leader will be the unit with the highest stuff (eg. damage-wise, health-wise, etc.)
Its my job to make it change, so, Ill go ahead and do that.
Z.
Do u think we should use just pure vb direct x for the loading as it is definately capable of doing it quickly ? As the dll i have doubts about it working.
Yeah, we could do just plain VB DX.
I think with C we could get about .2 more FPS though :D
'Sides, DirectX is a DLL, so it wouldnt matter THAT much, would it?
So Psyvision... Whaddaya think 'bout doing the same DLL in VB?
(would kind of be an engine, like your system.dll idea)
But I would need specific components:
- Change all colours in a surface to a different colour
- Basic DX functions
- Alpha-Blending (can also do it with an API if u cant do it w/DX)
And more specifically, I would like certain functions:
And any others you can think of.Code:BlitAll() (would flip the backbuffer and draw the scene)
Blit(DxSurf as _SURFACE_, Space as POINTAPI, Space2 as RECT, Optional ALPHA as Integer)
(would draw a surface onto the Backbuffer at Space, and would take the image from the surface at Space2, optionally at translucent opacity ALPHA (0 - 100), 0 being no blit is done)
I would really appreciate it!
I also know that you have already done a ton of work, so it is okay if there is no DLL.
Ok, I shall start work tomorrow but i can do those functions and a few more for you that shall come into use.
It shall be done in VB for u.
Not too sure about alpha blending, if anyone has some docs on them ?
I have a module that uses Microsoft's Alpha-Blend function that I wrote about 2 months ago. (MS Alphablend is actually quite fast)
I'll post it here for you, Psyvision (uses hDCs, you can import it by create surface from DC)
yes it has been a while since ive been on ive been working on vb ddraw and the drawings/graphics the first came out *****y cause what i saw was a black and white inked virtion but that dont matter. im working with some friends on selecting the units and were now working were u can select more that one.
i got a function done that gets the screen sesolution and its workes even if u change it will its running.
Psy: LPDIRECTDRAWSURFACE just means that it is a pointer to a Surface. Its is the same thing as in VB, only in VB you "Set DDSurface = FICreateSurface(...)".
Now, are units going to be UDTs, or classes? Either will work. Wazup, How are multiple units stored (so you know they are together)? An Array, right? The way I have the units stored in my tests, I have an array of units, and a matching array of integers. The second array tells you what unit is attacking whom. I have attached a few new attributes to each unit, Size, and Moral. Size is the general power of the unit, and tells you, when unit x with size 4 is fighting unit y with size 3, unit x will usually win. On the other hand, 4 size 2 units fighting a size 6 unit, the 6 will probably lose. Make sense? Moral tells a unit when to run for his/her/its life. the moral goes up by some for every unit its killed, the number of units in his or her or its group, etc. it goes down for every unit in its group that is killed, etc. This will allow for units that are real veterens, and have killed 100 guys, but is fighing alone against 50, will still think he can win(ie insanity/stupidity/confidence). Feedback please. What does everyone think? Any ideas?
Z.
Units are going to be UDTs, because I would rather have
Attack(Unit(1), Unit(2))
than
Unit(1).Attack Unit(2)
For some reason I like the code first, and classes always screw up when I do them :D
And thank you wazupguys but sadly (:() I've already compiled a function that changes the screen resolution, but I'd be glad to see your code.
Have you heard anything from Norman Nomein lately?
Also Zaei I think those are great ideas!
GOOD NEWS
Ok, i have coded a dll:
Direct X, Direct Sound, Direct Music, Direct Draw.
Its working good so far, in 5 lines of actual code u can create a direct x, direct draw, direct sound, direct music and create and init a coop level, along with setting the display to height, width and reqired bits :D
I shall push a demo out soon, features front and back buffers, its a kinda wrapper at the mo, but allows direct access to the main direct x, draw sound etc objects used in the dll, which is good :D
Once this is done and we can use it i shall work on a C++ dll, though it will take longer thus i have done this for u lot :D
Wow... Psyvision, Norman Nomein, Wazup Guys, Zaei, (anyone I missed?) you're all doing a great job! Expect promotions soon :D
I'm still working on the menu because of school (I dont want to hear the word 'Shakespeare' for another Aeon or so....!) but I've gotten farther! I've also found a freeware 3D modelling program that isn't lacking in features. It's called "OpenFX" and it's pretty cool, so we can make our objects in that if we want...
I'm still making MIDI files (cranking them out!) and so far I have 2 complete and 1 in the making. I used to have like 10 but a disk crash took all of them away....
But I'm working on this very hard!
Wow... Psyvision, Norman Nomein, Wazup Guys, Zaei, (anyone I missed?) you're all doing a great job! Expect promotions soon :D
I'm still working on the menu because of school (I dont want to hear the word 'Shakespeare' for another Aeon or so....!) but I've gotten farther! I've also found a freeware 3D modelling program that isn't lacking in features. It's called "OpenFX" and it's pretty cool, so we can make our objects in that if we want...
I'm still making MIDI files (cranking them out!) and so far I have 2 complete and 1 in the making. I used to have like 10 but a disk crash took all of them away....
But I'm working on this very hard!
Keep up the good work guys!