Skip to main content

News

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Fat Cerberus

2866

Alright guys, v1.1.4.0 is out, here's some of the changes:

- added mirror modes to the image drawer
- fixed alpha not updating on color switch in image editor
- added bg to color box to see alpha colors
- optimized image switching, no need to redraw bg if same sized images
- changed folder browser for sphere executables to use a file dialog
- added font editor to tree view
- added error handling to the font editors, (it didn't filter for TT fonts)
- fixed not enough margin for folding on larger script files.
- made project tree show up first on project loads
- quick fix for pausing the modification of the tree view when engine runs.
- added an outline when drawing invisible rectangles in the image editor.
- minor fixes and changes

Get while it's hot! Thanks to some of LordEnglish's suggestions I think it's a bit more comfortable to use now.


Haha, you even fixed a few bugs I noticed but forgot about!  Thanks for the tree view font switcher Radnen, you're a lifesaver! :) Changed it to 10-point Segoe UI, now it's perfect! You should probably consider using Segoe UI as your default project tree font instead of MS Sans Serif, as it's much easier on the eyes.  Oh, and speaking of fonts, the Sphere font generator is basically useless right now because it renders the characters anti-aliased, which makes the resulting font look blurry when displayed at a lower resolution.  Any way of fixing that?

Oh, regarding the folding margins though... you should probably scale those based on the font size; 10 point is fine in the new version, but up that to 12 and the fold arrows overlap the line numbers again.

Edit: I cloned the spherestudio repo and checked out the code, and it appears you might be able to fix the antialiasing issue by adding...
Code: (csharp) [Select]
g.SmoothingMode = SmoothingMode.None;

...before drawing the characters.  I couldn't test it though as when I went to run the editor I immediately got a null reference exception on TreeContent.Activate();.  I don't know if it's because I'm missing files or what (I had to disable the ClickOnce signing just to run it), or just because I compiled it with VS2012 instead of VS2010, but yeah, couldn't get my own build to run.
2867
Libraries / Re: Scenario 3.0
Well, in any case I implemented the cascading scene composition to be unveiled with Scenario 3.1. It required a single line of code: return this; at the end of defineCommand(). I wish all features were that easy to implement!
2868
Libraries / Re: Scenario 3.0
The long-awaited Scenario 3.0 is finished!  I did some major refactoring on the codebase, documented the important methods in the JS file, and as per alpha123, added diagonal support to facePerson.  I refrained from incorporating the diagonal support in movePerson (renamed from walkPerson in 2.1.1) as it would require modifications to the way the step count is calculated, as walk speed is implemented as a vector with independent X and Y speeds.  Maybe that'll make it into 3.1...
2869
Then you should be using an OpenFileDialog instead of a FolderBrowserDialog anyway! :)

Also, a bug (or maybe just an annoying "feature" ;) ) I found: Running the project collapses all folders in the project viewer, every single time.  VERY annoying.  I swear there was another bug I found, but I can't remember what it was now... oh that's right, you can't open a file from the project explorer by pressing Enter, it just dings at you instead.

Oh, and maybe add an option to change the font for the project tree?  Again, the default one is too small on my 1920x1080 laptop display.  Speaking of which, thanks for changing the default for the script editor from Courier New to Consolas, the latter is a much nicer font for programming.
2870
Libraries / Re: [Script] Tweens
Wow, this is nice, much more powerful than the version of this I did for Specs ("Fader"), which is exclusively linear.  I think I'll end up using this instead!
2871
Hey, I figured out a solution to the folder dialog issue: Just use an OpenFileDialog with the filter set to only show the correct filename--engine.exe or config.exe.  I've seen a couple apps do this when the executable to be located has a known filename (e.g. foobar2000 with encoders).
2872
I read well...  :-[. Haha, thanks, now I can finally ditch the old-as-hell default editor!
2873
That automatic mirroring functionality looks handy!  Your editor is already miles ahead of the stock editor, Radnen, and it keeps getting better. :). Now all it needs is the ability to change the script editor font and tab size and I'll use it exclusively...
2874
I'll check out the .NET docs later tonight when I have access to my own laptop and let you know.

Edit: Bummer.  Looks like the new folder selection dialog requires custom code to use, it's not natively supported in .NET.  According to the article below, internal methods to do it exist, but it requires reflection to make use of:
http://www.lyquidity.com/devblog/?p=136

Probably way too much work just for a simple .NET Sphere editor.  To answer your question, I believe you can use the file selection dialog for this purpose, but you'd have to parse the filename out of the resulting path and the user wouldn't be able to select a folder that didn't have at least one file in it...
2875
That's the old-style folder selection dialog.  Most new apps I've seen use a dialog similar to the file selection box (so you can paste a path), so it's probably just a matter of calling the correct API.
2876
How so?  A UAC prompt is the equivalent of Linux asking for the root password.
2877

You are on Windows, did you try turning off the stupid UAC rules?


People always suggest this, but this is a bad idea. Turning UAC off leaves the account with full admin privileges at all times--the equivalent to logging in as root on Linux.  The problem is that programmers still seem to think it's okay to save config data in Program Files, which is poor practice to begin with.
2878
Libraries / Re: Scenario 2.1.1
Haha, to be honest I don't even remember what I changed between 2.1 and 2.1.1. It couldn't have been anything major or I would have bumped it to 2.2 instead.  Oh well, I'll look over it, thanks alpha!

Edit: Hm, so apparently 2.1.1 was all refactoring, and somehow I managed to make the code MORE of a mess than it already was in the process.  I really have to get 3.0 finished as quickly as possible! :)
2879
Libraries / Re: Scenario 2.1.1
So the plan was originally just to clean up the Scenario codebase a little and do a minor version bump to 2.2, but instead I ended up getting caught up in a major refactoring exercise. So needless to say, it's going to take longer than originally planned, but hopefully Scenario 3.0 will be worth the wait. :)
2880
Projects / Re: Spectacles: Bruce's Story

A map tile size of 64 would be hard to pull off. One it's hard to find resources for that size, two it's harder to draw (well by pixel art). But if you are going for a more HD style, then you just need someone who knows photoshop well enough.


Hm, I guess you're right.  I suppose I got a little ambitious there shooting for 720p for a 2D RPG.  I mean, it would definitely look awesome, but the high-resolution graphics might seem out of place considering I'm shooting for an overall retro feel for the game itself (think SNES-era RPGs).  And Sphere renders in software I believe; 1280x720 would likely cause lag on anything slower than an i3 anyway.   So yeah, this would probably work better if I use the standard 320x240 resolution (fullscreen would be an issue though since no graphics hardware supports that res anymore and Sphere itself is too outdated to know how to accommodate).  Heck, I could even go really old-school and do 320x200 (mode 13!)

I don't know, any suggestions?