Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline saviilsy  
#1 Posted : Sunday, August 28, 2011 4:20:10 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Hi again! :D

I have setup a new project from start and added references etc to make Delta run - it works, however I get weird warning that I won't see in sample projects. I have all the required native and managed dlls in the debug folder so no dependency errors.

Warnings(all from using Material2DColored :


Now the next issue, I want a scene background initialized by :
loadingScreen = new UserScreen("<LoadingScreen>")
{
IsOverlayScreen = true,
Background = new Material2DColored(Color.Red)
};

Since the Color constructor is deprecated I must use a texture :
loadingScreen = new UserScreen("<LoadingScreen>")
{
IsOverlayScreen = true,
Background = new Material2DColored("OneWhiteDotTexture", Color.Red)
};

Where to add the actual content? Or am I getting ahead of myself - is the content side even done yet?

Edited by user Sunday, August 28, 2011 4:20:42 PM(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Monday, August 29, 2011 3:14:16 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Sounds like you got no Delta.Graphics.OpenTK.dll in your output directory. Strange that there were no additional warnings before your log (maybe because some of them were stripped in the release version of v0.8.6). Normally the engine will try to copy all needed Dlls from the \External and \Dlls folders plus your DeltaEngine.sln (if you add any project there), maybe you were outside of these directories and the system was unable to find the assiemblies.

Currently the best workaround is to add all assemblies you need for yourself (so not just Delta.Graphics and Delta.Multimedia, but also the concrete implementations like Delta.Graphics.OpenTK, Delta.Multimedia.OpenTK, etc.).

Hope that helps.
Offline saviilsy  
#3 Posted : Monday, August 29, 2011 7:12:37 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Didn't help I'm affraid, I have added (for testing sake) reference to every delta engine assembly, made sure they are copied to the output directory and added the native dlls to be copied as well.

I noticed that if I copy everything(except the blocks.exe) from blocks' bin/debug to my program's bin/debug and let it overwrite the warning is no more... Some settings? I checked Settings.xml and couldn't find anything related to this problem (both seem to be ok).

Does One need to make some additional preparations for DE to work?

I created an empty project, set the output to windows application, added references to DE, copied the native dll's to my projects directory and made sure they are copied to output, added some code and ran it. And my project IS NOT under Delta Engine solution... Should it be?
Offline Benjamin  
#4 Posted : Tuesday, August 30, 2011 12:22:10 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
No it should not, but maybe test that.

I cannot see why this should not work, maybe send me your empty project and we can have a look (You can attach zip files here in the forum). Today I am testing Visual Studio Templates anyway, so this would even be helpful to see what works and what does not work yet.
Offline Benjamin  
#5 Posted : Tuesday, August 30, 2011 1:48:51 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Here is the new wiki page about the VisualStudioTemplates. I will upload the VisualStudioTemplates.zip there once I am done with testing (in an hour or so).
http://deltaengine.net/Wiki.VisualStudioTemplates

Hope this helps Smile
Offline saviilsy  
#6 Posted : Tuesday, August 30, 2011 7:19:36 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Ok, I made a test project and attached the solution which is the "First Steps" code from the wiki and it is totally self container - You should be able to just run it straight away. I noticed that the warning is present but not showing unless I leave the project type to command prompt. So the blocks example etc also can give warnings but they are not immediately visible to users since they don't output the text to screen (my other project outputs the warning to the screen AS WELL AS the command prompt window... strange).

I also noted that always the xxxx.vshost.exe is always in use when creating DE projects(cannot delete bin folder) - is this normal for all DE C# Express projects(I haven't noticed this behaviour before)? I must close the VS Express before I can delete the bin folder.

I can't find the zip attachment anywhere Blink must be blind, well there is a link to it .. removed link! see our PrivateBetaLicense.txt!

Can't add the templates to VS Express, I'll try to compile the template manually and report back here...

Edited by moderator Tuesday, August 30, 2011 8:22:14 PM(UTC)  | Reason: Not specified

Offline saviilsy  
#7 Posted : Tuesday, August 30, 2011 7:22:04 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Nope, didn't work for the template either, try to set the program output to console application to see the warnings.
Offline Benjamin  
#8 Posted : Tuesday, August 30, 2011 8:34:20 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Please do NOT post any parts of the Delta Engine (source code or binaries), I wanted to see YOUR source code and project (.cs and .csproj), thats all I need to check out your problem. I removed your link. Btw: To attach files to a forum post just check the checkbox before you post a message at the bottom.

The project you posted looks fine, it is a little overkill to add every single assembly there is and there are some warnings when I try to execute it and it was too annoying to fix every single assembly, so I removed them all and only added what you need.

Things you should change:
- Put the csproj (plus solution) in the \Samples\ErrorTest subdirectory, then you can directly start it from there.
- You don't need the arguments and return parameter for the Main method, just use void Main()
- You don't need any more assemblies or external references, it works fine with the 5 assemblies I added (engine, graphics, rendering, rendering.basics, utilities)
- Set the project type to Windows Application, there is no need for a Console.
- Works just fine, see attachment zip (extract to your DeltaEngine \Samples\ folder)
- See image below for the output.

This is the source code (unchanged from your ErrorTest project):
Code:

        public static void Main()
        {
            Material2D texturedRectangle = new Material2D("DeltaengineLogo");
            Application.Start(delegate
            {
                texturedRectangle.Draw(new Rectangle(0.2f, 0.2f, 0.6f, 0.6f));
            });
        }

Edited by user Tuesday, August 30, 2011 8:37:13 PM(UTC)  | Reason: Not specified

File Attachment(s):
ErrorTest.zip (3kb) downloaded 1 time(s).
Benjamin attached the following image(s):
ErrorTestScreenshot.png (19kb) downloaded 5 time(s).

You cannot view/download attachments. Try to login or register.
Offline saviilsy  
#9 Posted : Tuesday, August 30, 2011 10:25:48 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
I honestly apologise for posting the link, I was in a bit hurry - judgement failed on my behalf (thankfully 2shared as far as I know don't index files), so sorry Blushing

It was an overkill to link all the assemblies but it was the point to show You that the problem persists even if EVERYTHING is linked to the executable. And why I posted the whole project, I thought it would be best to use the binaries that I compiled, to have the exact runtime/data when I run the application.

As far as Your proposed changes, mainly these would not hurt am I right? I like to create C# program main's like C ones(int return and with args). The console output is for debugging purposes since DE prints the warnings to the console am I right?

So the main reason for the warnings is the project directory - it should be in the Samples?

It worked before for me too, it just outputted the warnings. I thought You might want to know/analyse WHY it makes those warnings because it actually runs and shows the image(it is a bit annoying to that it prints the warnings to the application window).

I'll move the project to the samples tomorrow evening and report back if that helps for the warnings.

PS. I don't see anything related to attaching files on posts - am I completely blind Huh ? The top bar consists of the text formatting, insert image, create link, alignment, BB etc. After the text box where One types a message I see "Options : Watch this topic and receive notification of activity vie e-mail?"(the only checkbox on the page) then the buttons Preview, Post and Cancel and after that the last 10 posts screen and finally the bottom page where is Your logo and stuff. I use Chrome, could there be a setting that prevents normal forum users attaching files?

PSS. Ok, I managed to test it before getting some sleep and I switched to Console project(just to see if the warning comes there) and it did not. So obviously it requires the project to be in the Samples directory.

Edited by user Tuesday, August 30, 2011 10:30:15 PM(UTC)  | Reason: Managed to test it now

Offline Benjamin  
#10 Posted : Tuesday, August 30, 2011 11:20:45 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
So the main problem is that your game won't find the needed assemblies and dependencies. One solution is to put them in the GAC, which makes development easy, but deployment hard (but then again we have the Launcher and BuildSystem that solves all that for you already). More details about this problem can be found here: http://forum.deltaengine...x?g=posts&t=29&#

About the Console and int Main(args), it is obviously your choice, I just said it is not needed. You can develop your game with a console open all the time (and maybe disable the console when you release the game) and use int Main(args), but it will never do anything. Normally a Delta Engine game or application should report zero errors or log messages into the log or console, but you are right that currently the log and console will be filled with a few messages on stuff we are working on ^^

About the "Attach files to this post?" feature, maybe it is broken for normal members, I have to check with another account, sorry about that.
Offline Benjamin  
#11 Posted : Tuesday, August 30, 2011 11:28:09 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Now it is possible to upload attachments to posts (was previously not possible to members, only to moderators)
Offline saviilsy  
#12 Posted : Thursday, September 1, 2011 7:09:12 AM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Hmm, where the upload attachments check box is supposed to be located? Near the "Watch this topic..." check box in the post options?

I still can't see it Crying
thanks 1 user thanked saviilsy for this useful post.
tst8 on 9/1/2011(UTC)
Offline tst13  
#13 Posted : Thursday, September 1, 2011 10:19:36 AM(UTC)
tst13

Joined: 9/1/2011(UTC)
Posts: 1

Was thanked: 1 time(s) in 1 post(s)
It is the last option in the Options list after "Watch this topic". I just created this new account and tested it, it works :)

Where to upload attachments

Edited by user Thursday, September 1, 2011 10:20:41 AM(UTC)  | Reason: Not specified

tst13 attached the following image(s):
ForumAttachments.png (3kb) downloaded 67 time(s).

You cannot view/download attachments. Try to login or register.
thanks 1 user thanked tst13 for this useful post.
Benjamin on 9/1/2011(UTC)
Offline Benjamin  
#14 Posted : Thursday, September 1, 2011 12:51:11 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Okay, some more people had the same problem. It is now all solved by killing the whole ActiveAccess table (seems to be a YAF bug), see: http://forum.yetanotherf...post---v1-9-5-5-RTW.aspx

Now it should work fine for everyone :)
thanks 1 user thanked Benjamin for this useful post.
saviilsy on 9/1/2011(UTC)
Offline saviilsy  
#15 Posted : Thursday, September 1, 2011 3:36:24 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Indeed now I can see it, thanks Benjamin Smile
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2022, Yet Another Forum.NET
This page was generated in 0.147 seconds.