Mirage Source
http://www.miragesource.net/forums/

Problem in MS4
http://www.miragesource.net/forums/viewtopic.php?f=184&t=6387
Page 1 of 51

Author:  delden [ Wed Nov 04, 2009 3:16 am ]
Post subject:  Problem in MS4

I don't know if it's just me or what to do, But I have a big problem..
This problem is incorperated with the client comiling into a .exe
With this code:

'Map Texture variables
Public Const MAX_TILE_TEXTURES As Byte = 2 'Number of map files
Public Const TILE_TEXTURE_WIDTH As Integer = 256 'Make sure it's a power of 2!
Public Const TILE_TEXTURE_HEIGHT As Integer = 1024 'Ditto
Public Tiles(1 To MAX_TILE_TEXTURES) As Direct3DTexture8 'This stores the image files

Okay, Time to break the code down to the problem.

Tiles(1 To MAX_TILE_TEXTURES) As Direct3DTexture8

Comes up with problem when compiling to .exe "Compile error: Can't find project or library"
I do so hope I have given infomation that will be able to help me and others in some way, Shape or form.
Please do not spam this topic with "I have this problem to" things, I just what a straight awnser thus other people with problem can be sent here.

Author:  GIAKEN [ Wed Nov 04, 2009 3:18 am ]
Post subject:  Re: Problem in MS4

Add DirectX8 to Project > References.

Author:  delden [ Wed Nov 04, 2009 3:22 am ]
Post subject:  Re: Problem in MS4

GIAKEN wrote:
Add DirectX8 to Project > References.

Sorry to ask such a stupid question but, How would this be done?
Yes I know I am nub at this thats just because I am new to it and just getting used to VB6.0
Thank you for you're help GIAKEN.

Author:  Robin [ Wed Nov 04, 2009 3:35 am ]
Post subject:  Re: Problem in MS4

This is the section for posting bugs with MS4.

MS4 doesn't use DX8. >_>;

Author:  delden [ Wed Nov 04, 2009 3:38 am ]
Post subject:  Re: Problem in MS4

Robin wrote:
This is the section for posting bugs with MS4.

MS4 doesn't use DX8. >_>;

I have not seen any sections for problems like these.
I just want to learn how to fix this, is that so much to ask?... >__>
How can MS4 not use DX8 look
"'Main Variables
Public dx As DirectX8 <--
Public d3d As Direct3D8
Public d3ddev As Direct3DDevice8"

Author:  Robin [ Wed Nov 04, 2009 4:19 am ]
Post subject:  Re: Problem in MS4

Oh, Harold released a shitty new version.

Yeah, that's his personal edit, not an official release.

Sorry, didn't notice he fucked up that as well.

Author:  delden [ Wed Nov 04, 2009 4:25 am ]
Post subject:  Re: Problem in MS4

Robin wrote:
Oh, Harold released a shitty new version.

Yeah, that's his personal edit, not an official release.

Sorry, didn't notice he fucked up that as well.

So, Do you know how to do? :/

Author:  Robin [ Wed Nov 04, 2009 4:29 am ]
Post subject:  Re: Problem in MS4

Add DirectX8 to Project > References.

Author:  delden [ Wed Nov 04, 2009 4:31 am ]
Post subject:  Re: Problem in MS4

Robin wrote:
Add DirectX8 to Project > References.

If you read up you'd notice me say that I am new and don't see References inside of project.
:[

Author:  Robin [ Wed Nov 04, 2009 4:32 am ]
Post subject:  Re: Problem in MS4

delden wrote:
Robin wrote:
Add DirectX8 to Project > References.

If you read up you'd notice me say that I am new and don't see References inside of project.
:[


At the top of VB6, in the menu, there's 'File, Edit, View, Project' etc.

Click Project, like I said.

Then click References, like I said.

Author:  delden [ Wed Nov 04, 2009 4:42 am ]
Post subject:  Re: Problem in MS4

Robin wrote:
delden wrote:
Robin wrote:
Add DirectX8 to Project > References.

If you read up you'd notice me say that I am new and don't see References inside of project.
:[


At the top of VB6, in the menu, there's 'File, Edit, View, Project' etc.

Click Project, like I said.

Then click References, like I said.

I don't see DirectX8 inside references... >__>

Author:  GIAKEN [ Wed Nov 04, 2009 4:48 am ]
Post subject:  Re: Problem in MS4

Need to download dx8vb.dll

Also I didn't release a DX8 version of MS4. It was somebody else (Harry or somebody?).

Author:  delden [ Wed Nov 04, 2009 6:17 am ]
Post subject:  Re: Problem in MS4

Thanks for all you're help people.
But now I have another error to do with font or something.

Public MainFontDesc As IFont

Do I need another .dll or something?
Also could I get a list of all the .dll's i need for other errors.

Author:  GIAKEN [ Wed Nov 04, 2009 6:31 am ]
Post subject:  Re: Problem in MS4

http://www.asphodelgames.com/community/ ... ?f=3&t=204

Author:  delden [ Wed Nov 04, 2009 7:01 am ]
Post subject:  Re: Problem in MS4

GIAKEN wrote:
http://www.asphodelgames.com/community/viewtopic.php?f=3&t=204

Can you tell me what ones I need to add to it?? O__o
Not all of them let me add them, So what ones? o__o

Author:  GIAKEN [ Wed Nov 04, 2009 7:15 am ]
Post subject:  Re: Problem in MS4

Umm just install the runtimes there?

Author:  delden [ Wed Nov 04, 2009 7:16 am ]
Post subject:  Re: Problem in MS4

GIAKEN wrote:
Umm just install the runtimes there?

I did, Still says same error xP
Sorry if my nubbyness becomes a problem, I just wanna get there errors out of the way so I can get to work.

Author:  GIAKEN [ Wed Nov 04, 2009 7:22 am ]
Post subject:  Re: Problem in MS4

Not sure about that last error. Explain exactly what it's telling you?

Author:  Robin [ Wed Nov 04, 2009 7:28 am ]
Post subject:  Re: Problem in MS4

What copy of VB6 are you running?

Author:  delden [ Wed Nov 04, 2009 7:32 am ]
Post subject:  Re: Problem in MS4

I'm running on the normal VB6.0

Alright here is the full code.

'Font Variavles
Public MainFontDx8 As D3DXFont
Public MainFontDesc As IFont 'We use this temporarily to setup the font
'Public TextRect As RECT 'This defines where the font will go
Dim fnt As New StdFont 'This is also used to describe and setup the font

Not i'm gonna break it down to the error.

Public MainFontDesc As IFont 'We use this temporarily to setup the font

The error says "Compile error: User-defined type not defined"
I have downloaded the Asphodel thing and everything.
I hope one of you can help.

Author:  Robin [ Wed Nov 04, 2009 7:38 am ]
Post subject:  Re: Problem in MS4

Download the source again.

If you don't have the proper references, open the source up then save it, you'll break it even if you download the references later.

Author:  GIAKEN [ Wed Nov 04, 2009 7:51 am ]
Post subject:  Re: Problem in MS4

Robin wrote:
Download the source again.

If you don't have the proper references, open the source up then save it, you'll break it even if you download the references later.


Yep. If you get a notification about missing references and you OK it VB6 will remove the code using it. (or at least it removes the controls? I think)

Author:  delden [ Wed Nov 04, 2009 7:52 am ]
Post subject:  Re: Problem in MS4

Re-downloaded and a new error has came up.
Heres the code.

Public Sub CheckSprites()
Dim i As Long

i = 1

'While FileExist(GFX_PATH & "sprites\" & i & GFX_EXT)
' MAX_SPRITE_TEXTURES = MAX_SPRITE_TEXTURES + 1
' i = i + 1
Wend

Now to break it down to the error

Wend

Error says "Compile error: Wend without While"
I always get so many errors >__>

Author:  GIAKEN [ Wed Nov 04, 2009 7:54 am ]
Post subject:  Re: Problem in MS4

'While FileExist(GFX_PATH & "sprites\" & i & GFX_EXT)
' MAX_SPRITE_TEXTURES = MAX_SPRITE_TEXTURES + 1
' i = i + 1
Wend

Remove the ' there.

This is a common error with the source.

Author:  Robin [ Wed Nov 04, 2009 8:31 am ]
Post subject:  Re: Problem in MS4

I went through and there's various problems with it.

All are easy to fix.

Page 1 of 51 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/