Ok swear to god… it wasn't me this time… but the MenuSystem draw function seems to be causing code explosion… Kevin do you know what's going on there?
On: 1172011632|%e %b %Y, %H:%M %Z|agohover
Number of posts: 5
RSS: New posts
Could be me. It was working for me when I uploaded it, but perhaps I forgot to include a graphics file or something. I'll take a look at it (and possibly buy a round of drinks for Saturday ;).
yep, it was me. Turns out that C# does not store all of the project settings in the .csproj and stores some (such as in which directory to run the programs for debugging) in the .csproj.user file… wow that makes me disappointed. Anyway, the problem is that it was not finding the font or the cursor graphic because it was looking for a Font and art directory in the Debug folder when it was not there. I suppose we will need to find a solution to this that everyone can agree on…
Looks like you (Ben) started addressing this problem in r36 by putting things in a content folder and having Vis Studio copy the content to the Debug/Release output on compile. I'm not sure exactly how this works, so perhaps you can enlighten me/us on Thursday? The solution that I have been using is to set the working directory (Project Settings->Debug) to be the trunk folder of the archive (wherever you checked out SVN to), so that it looks for paths relative to there (and thus all of the paths I coded are art/ or Fonts/ since those are the SVN layout). I suppose the "real" solution would be to have a registry key that pointed to the directory holding assets, so that wherever our end-users decide to install it, it will be able to find its resources. This would also let us just set this directory ourselves during debugging so that things would just work… Thoughts?
Yeah I tried to get Vis Studio to place all content (such as images, sounds, xml) in directories inside the same subfolder as the exe file (currently bin/x86/Debug for me from the root SVN directory), so that it would be able to access everything it needed with the exe at the top level… similar to how I assume we'll finally release the game (one folder containing the exe with subfolders for content). However, as Chelsea let me know, that didn't work, so now we're back to the original way you had it, Kevin, I think, with folders in the root svn directory.
We'll have to figure out how to do it together… my effort last night proved simply annoying… for now your solution works fine though. Before I would have to copy any new content into the binary folder, but the Settings->Debug working directory change will do fine for now. Besides, we've got more pressing things to finish before saturday…
ok, sounds like a plan.





