Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / [GDK.net] "Could not load file or assembly" Error

Author
Message
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 10th Dec 2008 02:02
I'm getting the following error when running the default DarkGDK.net template in VB 2008:



I then dumbed down the Main game loop function to this:



Still the same error. Anyone have any ideas?
enablerbr
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: United Kingdom
Posted: 10th Dec 2008 02:33
does this also happen when you load a tutorial project? i'm not a VB.Net user but that error sounds familar.
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 10th Dec 2008 02:38
no, I can load and compile the "Getting Started" tutorial just fine, and I even tried to use the same code from the tutorial, with no luck.

I've double checked References, assembly info, everything you can imagine, both the tutorial and my project are exactly the same, except mine doesnt run.
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 10th Dec 2008 04:06
PublicKeyToken=XXXXXXXXXXXXX' sounds a bit strange. Have you tried removing the reference then adding it again?

[center][center]
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 10th Dec 2008 15:08 Edited at: 10th Dec 2008 15:12
I put X's in there instead of the Key of random letter/numbers, I didnt know if that was sensitive data or not..

Removing the GDK references?
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 10th Dec 2008 15:09
AFAIK, it is sensitive to that.

Yep, remove the GDK references and add them again.

[center][center]
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 10th Dec 2008 15:19
I meant that I altered that Key (adding XX's) before posting it here.

I'll try removing/adding those references later tonight when I can get back to the project.

Are you able to run the default template program that is created when creating a new GDK.net project with VB 2008?
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 10th Dec 2008 15:20
@RanQor: I have no problem running the default template program i VS 2008.

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 10th Dec 2008 15:26
Something must be screwed up with my GDK installation then, but its odd that a tutorial will compile successfully, just not any new projects.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Dec 2008 01:07
RanQor,

Can you check the following for me please:

1. Start Control Panel

2. If you're running Windows XP, go to Administrative Tools

3. Double click on 'Microsoft .NET Framework 2.0 Configuration'

4. In the new window, click on 'Manage the Assembly Cache'

5. When the list of installed assemblies appear, can you check that you see these three assemblies:

DarkGDK v1.1.0.0 Public Key token e5d518e3875aacb1
DGDKLib v1.1.0.0 Public Key token e5d518e3875aacb1
DGDKPlugins v1.1.0.0 Public Key token e5d518e3875aacb1

6. If you see all three here, you will need to check that when you create a new project, make sure that the project references ALL THREE dlls. If you still have difficulties, I will need to determine if there is an issue with your current installation of DarkGDK.NET, and whether the default locations for Visual Studio are correct also.

Paul.

RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 11th Dec 2008 01:28 Edited at: 11th Dec 2008 01:31
I re-installed DarkGDK.net doing a "repair" install. Once that finished I loaded up a new project and it still came up with the same error.

I have Vista Ultimate, and Administrative Tools is a Control Panel directory, but "Microsoft .NET Framework 2.0 Configuration" is not listed as a tool in that directory.(I have .NET 3.5 installed, would that matter?)

I do know that all three are linked as a reference to the newly created projects.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Dec 2008 01:33 Edited at: 11th Dec 2008 01:35
RanQor,

Ahhh!!! I understand now.

In your new project, can you change the build model to x86. This should resolve the problem.

[EDIT] This can be done by going to the Configuration Manager of your project, and set the Platform to x86.

Paul.

RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 11th Dec 2008 01:46 Edited at: 11th Dec 2008 01:49
Thank You! That worked perfectly.

Now if I can figure out how to set that as default.. lol

Edit:
Is that something the GDK.NET Template should be able to automatically do?
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 11th Dec 2008 02:10
SyncRate isnt working. I've tried to set it to 0, 1000, 20. No matter what I set it to, my FPS stays between 59-60 (and drops to 5-10 when dragging the window).

kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 11th Dec 2008 04:53
@RanQor,

It's like that even with DarkGDK C++, it remains locked to your monitor's refresh rate. We never heard back from TGC when is this gonna be solved, at least, not that I remember.

[center][center]
Teddinous
15
Years of Service
User Offline
Joined: 9th Dec 2008
Location:
Posted: 11th Dec 2008 10:47
Quote: "RanQor,

Ahhh!!! I understand now.

In your new project, can you change the build model to x86. This should resolve the problem.

[EDIT] This can be done by going to the Configuration Manager of your project, and set the Platform to x86.

Paul."


How is this done in express edition? I cannot find this option?

thnx
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 11th Dec 2008 17:52
Quote: "it remains locked to your monitor's refresh rate. We never heard back from TGC when is this gonna be solved"


And yet I've seen demos using GDK showing high frame rates on my PC that are way above my refresh rate. The demos may have been written in DarkBasic though.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 11th Dec 2008 17:55 Edited at: 11th Dec 2008 17:58
@kBessa: Wow, now that just isn't right. The documentation says it should not be limited when set to 0. I'm starting to feel like I bought a Beta program, I'm barely 5 lines of code into my project and i'm already coming across some limitations.

@Teddinous:
Go to Tools->Options
Expand the "Projects and Solutions" section
Click on General
Check the option "Show Advanced build configurations"
Click OK
Now, click Build->Configuration Manager
In the List of projects, click the drop down for "Platform" (It should already say "Any CPU")
Click New in that drop down.
Select the new platform as x86, click OK.

It should then finally compile correctly for you.
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 12th Dec 2008 00:06 Edited at: 12th Dec 2008 00:07
@Lilith: If you have downloaded the old demos available at the site, yes, they didn't have any limits, as they were from the very first version of DGDK (DarkSDK at the time).

If I'm not mistaken, the Frame rate was like unlimited in the first releases, it acted like that starting from a certain point.

[center][center]

Login to post a reply

Server time is: 2024-09-30 13:29:30
Your offset time is: 2024-09-30 13:29:30