Page 1 of 3

Swordedit Sunlight (Version 1.0)

Posted: Sat Jun 22, 2013 12:23 am
by Samuco
Downloads
Application: http://www.samuco.net/SE/sunlight.zip
Source: http://www.samuco.net/SE/sunlight_source.zip

Copyright for added code (since version genesis) is held by Samuel Colbran (Samuco).
Instructions by 002
Swordedit: Sunlight
By Samuco

Hotkeys to remember:
[1] = Move mode. Left click and drag to move an object.
[2] = Select mode. Left click to select an object.
[3] = Duplicate.
[4] = Move object to BSP center.
Scroll = Rotate yaw
[Delete] = Delete selected object.
[Control] + Move = Move object vertically
[Shift] + Move = Duplicate object and move new object.
[Space] + Move = Snap object to BSP.
[Right Click] or [Control] + [Left Click] = Rotate camera.
[Command] + [S] = Save map. Use as often as you need to.

Modules
Main window
This window is your main viewing window. Most of your work will be done in this window alone, including duplicating objects, moving objects, selecting objects, and more. It's a render of your map.

Rendering window
You can change the renderer used in the main window if you are experiencing problems.
> Sunlight - Default renderer. Renders shaders and bipeds. It also adds some anti-aliasing and a fog effect. This is basically how it will look on Halo. It uses extra CPU utilization as a result and may be slow on older machines.
> Moonlight - Sunlight, but without shaders, antialiasing, or fog. It uses the least CPU utilization.
> Starlight - It only renders the BSP, scenery, and vehicles, thus it doesn't look as good as Moonlight or Sunlight. Do not use it unless you are experiencing problems with Moonlight or Sunlight. It utilizes the most CPU and it is the slowest, therefore it is the most inefficient.

You can also raise and lower your FPS with the FPS slider. Raising your FPS will use more power, and may not even be necessary depending on your monitor's refresh rate. Lowering your FPS will use less power, but make the main window seem slow.
Clicking the performance button will dramatically increase frames per second at the cost of much higher power consumption. Stutters on large maps.

Editor window
This window may be one of the most important windows you will use, mainly for the Create feature. Using the Create, you can choose an object to create. If you want to spawn a netgame item, then select "Item" and click +. If you want a teleporter, select "Teleporter Pair" and click the +. It's never been easy. You can even spawn machines, too.

You can change your camera speed using the slider, and you can click the house icon to move your camera to the BSP center. Clicking on First Person will snap your camera to the BSP, allowing you to view the world in more of a player's perspective. The best way to do this, though, is to actually test the map on Halo, yourself.

You can switch between Move and Select mode by clicking the radio buttons. Alternatively, you can use the [1] and [2] keys, respectively.

You can click Duplicate to duplicate the selected item. You can use Center to move the object to the center of the BSP. You can also click Delete to delete the selected item. Alternatively, you can use the [3], [4], and [Delete] keys respectively.

Selection window
You can rotate your selected object in this window. You can also swap your selected object for another object in its respected pallete. You can also enter precise X/Y/Z coordinates if you want to center objects, etc.

Selection settings
You can edit your selection settings in this window. Some objects have different settings. For instance, you can choose what gametypes you want a certain player to spawn in, as well as choose their indices. If you select a teleporter, you can specify whether or not it is an exit or entrance, and you can select what channel you want the teleporter to use. Vehicles can be specified on what gametypes to spawn in.
Screenshots
Image
Image
Image
Image
Image
Image

Re: Swordedit Sunlight (Version 1.0)

Posted: Sat Jun 22, 2013 3:23 am
by TaxiService
Great fucking job. :D

Providing a mediafire mirror in case something ever happens to the original link.

Download from mediafire



EDIT: PS: why aren't there biped-looking spawns in mudgorge..? : ?

Re: Swordedit Sunlight (Version 1.0)

Posted: Sat Jun 22, 2013 4:34 am
by Samuco
Mudgorge doesn't have a biped palette. I could probably have swordedit just search for a bipd tag instead (if a biped palette is missing).

Re: Swordedit Sunlight (Version 1.0)

Posted: Sat Jun 22, 2013 6:45 pm
by zapconquest
The new rendering engine is really cool.

I haven't spent too much time with this yet but one thing I miss from the old swordedit is pressing spacebar to move the camera up (although pressing c to move it down still works).

Anyway great job =]

Re: Swordedit Sunlight (Version 1.0)

Posted: Mon Jun 24, 2013 9:45 am
by Sparky
Please consolidate the several topics you have for swordedit into a single topic.

I like the teleporter connecting line based upon matching indices.

Re: Swordedit Sunlight (Version 1.0)

Posted: Mon Jun 24, 2013 1:13 pm
by 002
I seem to be getting random crashes, like when I select something, or move something, or enter something manually to move something.
edit: Even not doing anything causes crashing. What gives?

Also, I can't seem to be able to add items. It just freezes entirely when I do that.

Re: Swordedit Sunlight (Version 1.0)

Posted: Mon Jun 24, 2013 3:55 pm
by Sparky
002, it works for me on OS 10.6. But it just now crashed while I was exiting the red cave center-facing entrance in first-person mode.

Samuco, the HUD window says Yaw, Roll, Pitch, but it should say Yaw, Pitch, Roll. The Roll control adjusts the Pitch and the Pitch control adjusts the Roll.

The first-person mode doesn't work quite right in tight spaces like around the bloodgulch bases.

Samuco, do you know how to add help files? I can do that for you if you like, or show you how. It's pretty easy to do.

Re: Swordedit Sunlight (Version 1.0)

Posted: Tue Jun 25, 2013 8:14 am
by 002
Okay, so on certain maps, I can't add items, but on others, I can.

When swordedit freezes from my attempts to spawn an item, anytime I click on the window to select something (even if there isn't anything there), I get a "SELECTION ERROR" popup.

The random crashes are really strange, though. I've had it crash when I was:
  • Moving an object.
  • Selecting an object.
  • Entering the coordinates to an object.
  • Rotating an object.
  • Entering the rotation angles for an object.
  • Moving the camera.
  • Moving the cursor.
  • Saving the map.
  • Moving the selection window.
Going to keep updating this list with each time it crashes. It doesn't do it every time I do any of these things, obviously.

The crashes don't seem to occur unless I'm in the application, though. If I move onto something else, I could leave swordedit open for 9+ hours, forgetting about it (I've done this before), then get back to it and it will still be running.

Another bug is that when entering performance mode, my chances of selecting an object decrease from 95% to 5%. I have to mash on the cursor to select something. I can't drag a box over the object, too. The screen also flashes weirdly.

Re: Swordedit Sunlight (Version 1.0)

Posted: Tue Jun 25, 2013 3:01 pm
by Samuco
Sparky wrote:002, it works for me on OS 10.6. But it just now crashed while I was exiting the red cave center-facing entrance in first-person mode.
Samuco, the HUD window says Yaw, Roll, Pitch, but it should say Yaw, Pitch, Roll. The Roll control adjusts the Pitch and the Pitch control adjusts the Roll.
The first-person mode doesn't work quite right in tight spaces like around the bloodgulch bases.
Samuco, do you know how to add help files? I can do that for you if you like, or show you how. It's pretty easy to do.
Crashes fixed (or should be). They were the result of a massive memory leak :roll:
HUD fixed
The code behind the first person mode (bsp collision) needs to be rewritten using binary trees.
Haven't got the time to write them as I have been called away on other projects.
002 wrote:Okay, so on certain maps, I can't add items, but on others, I can.
When swordedit freezes from my attempts to spawn an item, anytime I click on the window to select something (even if there isn't anything there), I get a "SELECTION ERROR" popup.
The random crashes are really strange, though. I've had it crash when I was:
  • Moving an object.
  • Selecting an object.
  • Entering the coordinates to an object.
  • Rotating an object.
  • Entering the rotation angles for an object.
  • Moving the camera.
  • Moving the cursor.
  • Saving the map.
  • Moving the selection window.
Going to keep updating this list with each time it crashes. It doesn't do it every time I do any of these things, obviously.
The crashes don't seem to occur unless I'm in the application, though. If I move onto something else, I could leave swordedit open for 9+ hours, forgetting about it (I've done this before), then get back to it and it will still be running.
Another bug is that when entering performance mode, my chances of selecting an object decrease from 95% to 5%. I have to mash on the cursor to select something. I can't drag a box over the object, too. The screen also flashes weirdly.
Performance mode is more of an experiment than an actual usable mode. Crashing should be much less now.

http://www.samuco.net/SE/sunlight.zip

Re: Swordedit Sunlight (Version 1.0)

Posted: Tue Jun 25, 2013 3:48 pm
by WaeV
Has http://www.samuco.net/SE/sunlight_source.zip been updated to reflect the new binary download?

Re: Swordedit Sunlight (Version 1.0)

Posted: Tue Jun 25, 2013 3:52 pm
by nil
WaeV wrote:
Has http://www.samuco.net/SE/sunlight_source.zip been updated to reflect the new binary download?
Aka upload it into a repository and use a VSC so you save everyone's (including yours) time, and don't have to re-upload it every single time. If you want help, bug me in the IRC channel, I'd be more than glad to help with that.

[EDIT]: By the way, if you want to compile squish into a fat binary and it's actually pretty easy. Download the source, modify the make file and supply -arch i386 -arch x86_64 in the compile source step, and run make.

Re: Swordedit Sunlight (Version 1.0)

Posted: Tue Jun 25, 2013 4:02 pm
by Dirk Gently
How to properly relaunch an application:

Code: Select all

[NSTask launchedTaskWithLaunchPath:[[NSBundle mainBundle] executablePath] arguments:[NSArray arrayWithObjects:nil]];
Figured I could help you clean up that code.

Re: Swordedit Sunlight (Version 1.0)

Posted: Tue Jun 25, 2013 8:00 pm
by 002
Image
Image

It renders glass perfectly!

Re: Swordedit Sunlight (Version 1.0)

Posted: Wed Jun 26, 2013 6:02 pm
by Dirk Gently
Here is your new map loading code because faster is better:

https://github.com/samdmarshall/SDMHaloMapLoader

Re: Swordedit Sunlight (Version 1.0)

Posted: Wed Jun 26, 2013 10:18 pm
by 002
  • I cannot see the X/Y/Z axis when selecting a player spawn in swordedit when using moonlight or sunlight, so I have to switch rendererer to starlight if I lose track of my player spawn.
  • Any non-teleporter netgame flags are a bitch to make, because I have to create a teleport pair, then change it to their respected type, then correct the team indices in Eschaton because only Red and Blue are supported. Only CTF flag should be limited to Red/Blue.
  • Race vehicles and oddball spawns are invisible, but I need them to finish my map. I have to do the above method to do so.