SteveDunn / Gleed2D

Generic Level Editor 2D
83 stars 28 forks source link

Need direction on adding the references... #35

Open Lost-My-Password opened 12 years ago

Lost-My-Password commented 12 years ago

I've been attempting to utilize the funtionality of both Gleed2D and FarSeer Physics. However, I'm unable to figure out how to properly add the correct references to my game. FarSeer is a little beyond my skill level, so for now, I'm starting with Gleed2D.

I'm using VS2010 / XNA 4.0

I've downloaded the "Gleed2D - Master" source (updated to work with XNA 4.0) It has a bunch of directories/sub directories, all with similar named cs files and dlls.

Here's my problem... I followed the tutorials, got familiar with the Gleed2D UI and created a new XML level. I was directed to start VS2010 and create a new windows game. I wrote in the required code to load my Level1.xml, but when I add...

"using Gleed2D;"

to the top of the game I instantly get a missing reference error (as would be expected) But the tutorials don't direct me on which dlls to add as references for the updated version of Gleed2D... There must be 4 or 5 of each dll with the same name but all in different directories!

Gleed2D.Core Gleed2D.InGame Gleed2D.Plugins Gleed2D.Tests Gleed2D.Ui

etc..

So I tried just picking a folder and added the dlls as references. However, when I add the lines..

1 using Gleed2D.Core

2 using Gleed2D.InGame

It says I'm missing an assembly or reference even though they are listed in my references!

What am I doing wrong?

...Should I be copying these files somewhere inside my "WindowsGame12" project folder?

....Should I be adding the Gleed2D.exe as my reference instead of the dlls?

.....Am I totally lost?

SteveDunn commented 11 years ago

Hi there, Sorry for the late reply. You should just need to reference 'Gleed2D.InGame' from your game. Pick any one from the 4 or 5 copies that you see. You are seeing 4 or 5 copies because of the way it builds (it has 'CopyLocal' set to true in project references).

You shouldn't need Gleed2D.Core, as that just contains core types used by the Gleed2D tool itself.

Hope this helps. If not, send me your solution and I'll have a look.

Cheers,

Steve