Your Ad Here

Subscribe
 Post #1
 28th February 2007
Gold Member
Shanjaq's Avatar
January 2005
646 Posts
V3.1 Patch:


V3 Base






Update
Now includes ColorMod and Bloom control entities for planetary environments. For example, Mars has a reddish tint to everything, while Mercury has excessive bloom. The effects can combine to create compelling environments if used properly(such as in Jinto's upcoming SolarSystem map!)

Also managed to thoroughly decouple SpaceBuild from Life Support, so there will be less need to update them both in tandem anymore. There is now a global registry function to add entities to the affected list, which can be seen operating in the Life Support server-side script.


added temperatures to planets and space. Every planet has a different temperature for direct sunlight and shade, the density of the atmosphere also affects how quickly your suit systems get depleted and how fast you get chilled or burned to death.

For temperature effects you'll need Life Support v1.8c



This is a concept gamemode inspired by the thread found here:
http://forums.facepunchstudios.com/s...d.php?t=286476

Build spaceships and land on distant worlds, perhaps building settlements or space stations. It comes with one demo map which includes all of the near-solar terrestrial planets: Mercury, Venus, Earth(and Moon), Mars(and moons.) Gravity only applies when standing on a planet, and the Moon has less than half normal gravity. Mercury is so close to the sun that you will receive burning damage if you do not find shade quickly. It is difficult to build due to the planet's instability causing frequent tremors. Venus has such a heavy atmosphere that you will be instantly crushed if you venture onto the surface without a Life Support System(Air Exchanger) to stabilize your atmospheric pressure. Both Earth and Mars have regular day and night cycles, though Earth's atmosphere is so thick that you cannot see anything in space during the daytime, while on Mars you can faintly see the outline of objects and other planets in the ruddy daytime atmospheric haze.

Using the Life Support mod will render space and all planets but our habitat Earth as air-free. You will need to bring your own air supply if you intend to leave Earth's atmosphere. The benefit of a Life Support System is that you will then be able to survive on Venus, which would otherwise be completely inaccessable..

The Life Support Mod can be found here:
http://forums.facepunchstudios.com/s...d.php?t=284353


Further installments are planned to include the Gas Giants, and an Astroid Belt, but they will have to be in separate maps to prevent Source from getting overwhelmed... At any rate, I'm also working on instructions on how to make your own SpaceBuild maps to take advantage of the multi-environmental system demonstrated by the map. In the meantime, enjoy the demo!

IMPORTANT
If you notice a lot of spam floating around in space, there is an administrator command that will remove all objects that are outside planetary domains. Make sure you tell everyone to land their contraptions on the nearest planet before issuing this command or you will accrue a dangerous amount of "Naughty" ratings!

say: !freespace











Now on how to make maps for this gamemode:

Here is a Planet Devkit with skybox sample + generator, planet templates(takes the excruciating pain out of terrain subdivision!) and documentation:


Also, here is a planet-making tutorial by Slavik:


Planet Making Basics


Landscape
1: Create a Cylinder with 12 sides(anything you can accurately divide into 4-sided top faces), it's a good idea to make its diameter a power of 2.
2: use the Clipping Tool to slice it up from north to south, then from northwest to southeast, then from northeast to southwest. You should be left with 6 4-sided faces if you hit each corner on the dot(grid may need to go down to 1 unit!)
3: flatten the cylinder so it is 1 units tall
4: go into texture editing tool, ctrl+click all 6 top faces and all 6 bottom faces
5: create displacement maps from them
6: select only the bottom faces and create a bulge so you have room in the upper displacement for valleys
7: select only the top faces and create your landscape.
8: cleanup set all displacement verticies at the very edge of your landscape to 0, same goes with the bottom displacement, this way it will fit into the atmosphere without poking out in places.

Atmosphere
1: make a sphere of the exact same diameter as your terrain, using the exact same number of sides as your terrain and centered at the equator.
2: tie it to a func_illusionary
3: disable shadows AND receiving shadows.
4: create a cylinder matching the landscape diameter and 128 units high, same number of sides, painted with the nodraw texture
5: move it outside your planet and copy it
6: use "paste special" with zero offset
7: reduce the horizontal diameter of the new cylinder by 32 units on each side
8: hit "Carve" and delete the smaller cylinder.
9: move the newly created ring back onto your planet so that you now have an invisible wall standing 128 units tall protecting players from jumping off the edge.


Environment
You'll need to place a "logic_case" entity at the exact center of your sphere, then give it the following case values:

Code:
Case01 = planet
Case02 = (the radius of your planet)
Case03 = (the gravity of your planet)
Case04 = (atmospheric pressure, 1 is equal to pressure at surface on Earth)
Case05 = (temperature in shade, Deg. Kelvin)
Case06 = (temperature in direct sunlight, Deg. Kelvin)
Case07 = (colormod ID string, optional)
Case08 = (bloom ID string, optional)

Case16 = (environmental flags)

These are the environmental flags:
1 = Habitat  --breathable air within this radius
2 = Unstable  --frequent tremors
4 = Sun Burn  --sun will burn you if not sheltered

So for instance you have a planet with a 1024 radius(2048 units across total), with half normal gravity, breathable atmosphere at safe pressure and temperature but with a burning sun, your "logic_case" would look like this:


Code:
Case01 planet
Case02 1024
Case03 0.5
Case04 1
Case05 288
Case06 288
Case16 5



the Unstable flag requires a little extra setup, you need to create a system of env_shake and ambient_generic entities that are controlled by your logic_case, then make a case somewhere containing the word "shake", that case will be the trigger for your planetary tremors.



ColorMod is defined as follows:
Code:
Case01 = planet_color
Case02 = (Color Add R G B) ranges 0 to 1 for each
Case03 = (Color Multiply R G B) ranges 0 to 1 for each
Case04 = (Brightness) ranges -2 to 2
Case05 = (Contrast) ranges 0 to 10
Case06 = (Color) ranges 0 to 5

Case16 = (colormod ID string) the string you set in the planet logic_case

For example, Mars has these settings:

Case01 = planet_color
Case02 = 0.2 0 0
Case03 = 0 0 0
Case04 = -0.17
Case05 = 1.6
Case06 = 1.22
Case16 = marscolor

Bloom is defined as follows:
Code:
Case01 = planet_bloom
Case02 = (Color R G B) ranges 0 to 1 for each
Case03 = (Size X Y) ranges 0 to 50 for each
Case04 = (Passes) ranges 0 to 30
Case05 = (Darken) ranges 0 to 1
Case06 = (Multiply Amount) ranges 0 to 5
Case07 = (Color Multiplier) ranges 0 to 20

Case16 = (bloom ID string) the string you set in the planet logic_case

For example, Mercury has these settings:

Case01 = planet_bloom
Case02 = 1 1 1
Case03 = 9 9
Case04 = 1
Case05 = 0.335
Case06 = 4.253
Case07 = 2.081
Case16 = mercurybloom

To make day/night cycles I just applied some trickery in Hammer(no lua required!)

1: Create a "spike" primitive with the exact same number of sides as your sphere and landscape using the nodraw texture, make it above your landscape with base matching your sphere equator and top just barely protruding from the sphere by 32 units
2: copy it then "paste special" with no offset
3: shrink the copy along the horizontal axes by 32 units
4: bring the top vertex of the spike down by 32 units(leave the bottom alone)
5: hit Carve then delete the smaller spike(move your landscape and sphere out of the way first!)
6: whatever you do, DO NOT MOVE the carved spike, Hammer will give rounding errors and it will degenerate!
7: tie it to a func_illusionary and paint the inside walls with that fake sky white texture.
8: edit the properties so that its render mode is "Additive"
9: set its "FX Amount" to any number below 255(for Earth I used 254, mars has 240.)
10: set its "FX Color" to any hue you desire.
11: create a logic_timer called "whatever_night" and give it at least 12 OnTrigger outputs in sequence separated by around 0.25 seconds. For each progressive output, decrease the "alpha" value of the sky until it reaches near zero(night sky visible)
12: create another logic_timer called "whatever_day" and give it 12 outputs with the reverse effect of night. Have this one Start Disabled.
13: Add an output to "whatever_night" that OnTrigger Enables "whatever_day" and disables "whatever_night"
14: Do the same in reverse for "whatever_day"


This is the tool I used to make the skybox:
http://www.garagegames.com/index.php...=view&qid=3707

Hope this helps!
 Post #2
 28th February 2007
Gold Member
Ilwrath's Avatar
June 2005
2,768 Posts
This is pure awesome!
 Post #3
 28th February 2007
Patrickletch's Avatar
December 2006
736 Posts
This is full of win. I don't like space and all of that but I'm still downloading. Thank you for sharing it with us.

How is this unfriendly mr_fj? You're a silly-billy.
 Post #4
 28th February 2007
Mislum's Avatar
May 2006
1,074 Posts
Nice map! Gold star for you!
 Post #5
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
Holy crap, I rarely download stuff anymore, but your download button was just calling for me!

Ok, back from testing :)

It looks great, except you can move mars' moons with the physgun, earths moon should rotate around earth too.
 Post #6
 28th February 2007
!!Kirkeh??'s Avatar
September 2006
55 Posts
is there meant to be gravity in space or none?
 Post #7
 28th February 2007
Gold Member
Shanjaq's Avatar
January 2005
646 Posts
there should be no gravity in space if you started the game with the SpaceBuild Gamemode.
 Post #8
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
!!Kirkeh?? posted:
is there meant to be gravity in space or none?
Once you're out of the atmoshpere (pretty large) it's 0 gravity.
 Post #9
 28th February 2007
Gold Member
conman420's Avatar
January 2007
5,041 Posts
This is a really fun role play map to play with friends this game mode is going to be big in the Garry's mod community I can just tell.

A winner for you!
 Post #10
 28th February 2007
Gold Member
Hoffa1337's Avatar
August 2006
2,433 Posts
this is really nice :D
 Post #11
 28th February 2007
Dennab
May 2006
4,853 Posts
Oh my god. Pure win.

Uh, it seems that gravity isn't working for me, gravity is the same for each planet and there is gravity in space.
 Post #12
 28th February 2007
Gmod.com Admin
PieClock's Avatar
August 2006
13,889 Posts
AWESOME
 Post #13
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
Conna posted:
Oh my god. Pure win.

Uh, it seems that gravity isn't working for me, gravity is the same for each planet and there is gravity in space.
Well I've seen 3 people failing to load the gamemode on that map, so you probably failed there too :)

edit: Seems there are more problems loading this, it's acting really strange on my friends server sometimes.
 Post #14
 28th February 2007
MopeChow's Avatar
July 2005
260 Posts
I like it. Great job.
 Post #15
 28th February 2007
trebor's Avatar
July 2005
518 Posts
lol Ja_cOp I just tried to make a server and 2 minutes later you post my probelms here :)

Nice map and script though...
 Post #16
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
trebor posted:
lol Ja_cOp I just tried to make a server and 2 minutes later you post my probelms here :)

Nice map and script though...
Ah hello :D

Hope you get the server up again soon.
 Post #17
 28th February 2007
trebor's Avatar
July 2005
518 Posts
Yeah...
I set sv_gamemode to SpaceBuild manually before starting the server
Let's see if it worked.

Edit:

IT WORKED lol ok setting sv_gamemode was sucessful...
 Post #18
 28th February 2007
Dennab
May 2006
4,853 Posts
My server is up, with the gamemode and map. The script ran and everything but no gravity is working and there is still gravity in space.
 Post #19
 28th February 2007
Gold Member
Battlepants's Avatar
February 2006
2,229 Posts
Very Impressive... we shall now have to have EPIC SPACE BATTLES!!! ...with exposions and action missiles!!!

But still, nice work!
 Post #20
 28th February 2007
Gold Member
Shanjaq's Avatar
January 2005
646 Posts
hmm... do you see any errors in the console?
 Post #21
 28th February 2007
Gold Member
SgtTupelo's Avatar
July 2005
6,009 Posts
WICKED SICK!

This is ace, you've got my download and a WINNER rating.

Cheers.
 Post #22
 28th February 2007
kureigu's Avatar
June 2005
240 Posts
I'd absolutely love to see someone make some form of stargate map using this new gamemode.

This is nothing short of awesome.

Great work. =D
 Post #23
 28th February 2007
Dennab
November 2006
1,221 Posts
Shanjaq posted:




This is a concept gamemode inspired by the thread found here:
http://forums.facepunchstudios.com/s...d.php?t=286476

Build spaceships and land on distant worlds, perhaps building settlements or space stations. It comes with one demo map which includes all of the near-solar terrestrial planets: Mercury, Venus, Earth(and Moon), Mars(and moons.) Gravity only applies when standing on a planet, and the Moon has less than half normal gravity. Mercury is so close to the sun that you will receive burning damage if you do not find shade quickly. It is difficult to build due to the planet's instability causing frequent tremors. Venus has such a heavy atmosphere that you will be instantly crushed if you venture onto the surface without a Life Support System(Air Exchanger) to stabilize your atmospheric pressure. Both Earth and Mars have regular day and night cycles, though Earth's atmosphere is so thick that you cannot see anything in space during the daytime, while on Mars you can faintly see the outline of objects and other planets in the ruddy daytime atmospheric haze.

Using the Life Support mod will render space and all planets but our habitat Earth as air-free. You will need to bring your own air supply if you intend to leave Earth's atmosphere. The benefit of a Life Support System is that you will then be able to survive on Venus, which would otherwise be completely inaccessable..

The Life Support Mod can be found here:
http://forums.facepunchstudios.com/s...d.php?t=284353


Further installments are planned to include the Gas Giants, and an Astroid Belt, but they will have to be in separate maps to prevent Source from getting overwhelmed... At any rate, I'm also working on instructions on how to make your own SpaceBuild maps to take advantage of the multi-environmental system demonstrated by the map. In the meantime, enjoy the demo!

IMPORTANT
If you notice a lot of spam floating around in space, there is an administrator command that will remove all objects that are outside planetary domains. Make sure you tell everyone to land their contraptions on the nearest planet before issuing this command or you will accrue a dangerous amount of "Troublemaker" ratings. You have been warned!

say: !freespace
Make a GMod 9 version or I'll become a terrorist and hold your family hostage until you do.
I MUST HAVE A GMOD 9 VERSION OF THIS! IT IS THE GAMEMODE OF MY DREAMS!
 Post #24
 28th February 2007
Gold Member
SgtTupelo's Avatar
July 2005
6,009 Posts
LuaPineapple posted:
Make a GMod 9 version or I'll become a terrorist and hold your family hostage until you do.
I MUST HAVE A GMOD 9 VERSION OF THIS! IT IS THE GAMEMODE OF MY DREAMS!
Just get Garry's Mod for $10, it's not too much, and don't give me that bullshit "I'm not buying anything from the internets"
 Post #25
 28th February 2007
Gold Member
djjkxbox's Avatar
November 2006
3,668 Posts
Conna posted:
My server is up, with the gamemode and map. The script ran and everything but no gravity is working and there is still gravity in space.
Heh, that was still fun, it was getting good until it crashed
 Post #26
 28th February 2007
Yowza's Avatar
May 2005
301 Posts
Woah! Very cool to play with and build on! Really good work!
 Post #27
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
I'm playing right now, everything works, and it's awesome.

We made a twoman shuttle with about 100k air, and went around the planets. Made a glip on venus and got totally splat, so now we're building new shuttles :D
 Post #28
 28th February 2007
MrAus10's Avatar
March 2006
775 Posts
This gamemode wins.
 Post #29
 28th February 2007
Gold Member
elevator13's Avatar
December 2006
4,166 Posts
:krad:Epicness which I must now try. Hopefully I won't get the gravity problem:krad:
 Post #30
 28th February 2007
Undeadking5's Avatar
March 2006
657 Posts
I love it, and your server. The funnest thing since rp_csdesert.
 Post #31
 28th February 2007
InvrtdShadow's Avatar
June 2006
356 Posts
I too rarely download anything anymore. This is getting a download and a winner. Good work.
 Post #32
 28th February 2007
Petetehgoat's Avatar
July 2006
119 Posts
If I said se...

Aww hell.


SEX!
 Post #33
 28th February 2007
Gold Member
Shanjaq's Avatar
January 2005
646 Posts
Wow, someone named Ziffo just made a right swanky moonbase on my server!



The airlock doors even used Wire's target finder with short range to open automatically!
 Post #34
 28th February 2007
MrAus10's Avatar
March 2006
775 Posts
Shanjaq posted:
Wow, someone named Ziffo just made a right swanky moonbase on my server!



The airlock doors even used Wire's target finder with short range to open automatically!
The server crashed.
 Post #35
 28th February 2007
Gold Member
Zeddy's Avatar
July 2006
7,023 Posts
I was playing solo with this and made my own starship. I crashed because a thing sat on my bombing button and I lost it because I deleted the save with it. :( It had a bridge with ship controls, a brig with lockable doors, 4 bedrooms, a messhall, and the hangar. I added thrusters to make the ship roll, tilt, and move, and since it wasn't meant to go near gravity, it did these smoothly, and you could still float around the ship. In the bridge I also made 4 escape pods, each with their own controls so they could be flown to a nearby planet. I made a save game for it and made every part of it breakable, and at one point, a bunch of Combine on Earth were attacking and they got their shots off from RPGs and the Pulse Rifles, and the ship began to explode. I crashed on the moon with a small air canister and nearly died before I found enough parts of my ship crashed nearby to build a small ship and flew to earth and killed the Combine there.
 Post #36
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
Zeddy posted:
I was playing solo with this and made my own starship. I crashed because a thing sat on my bombing button and I lost it because I deleted the save with it. :( It had a bridge with ship controls, a brig with lockable doors, 4 bedrooms, a messhall, and the hangar. I added thrusters to make the ship roll, tilt, and move, and since it wasn't meant to go near gravity, it did these smoothly, and you could still float around the ship. In the bridge I also made 4 escape pods, each with their own controls so they could be flown to a nearby planet. I made a save game for it and made every part of it breakable, and at one point, a bunch of Combine on Earth were attacking and they got their shots off from RPGs and the Pulse Rifles, and the ship began to explode. I crashed on the moon with a small air canister and nearly died before I found enough parts of my ship crashed nearby to build a small ship and flew to earth and killed the Combine there.
Um, what, you deleted the save? Why would you do that?
 Post #37
 28th February 2007
Gold Member
Zeddy's Avatar
July 2006
7,023 Posts
I deleted it because I had upgraded the ship to a more advanced version with the bombs and attack turrets. I got up to get a drink and I knocked a thing over and it landed on my keypad and held down the bomb button and, you know how it goes from there. It was a stupid mistake, I know, but now I know not to do that and I can rebuild It. I have the technology. I have the capability to make my world’s first rebuilt starship. My first starship will be that starship. Better than it was before. Better…stronger…faster.[/Six Million Dollar Man reference]
 Post #38
 28th February 2007
Gold Member
jA_cOp's Avatar
May 2006
5,573 Posts
we need a suit where we can slowly hover around in space... WE REALLY NEED IT...for space stations and capital spaceships.
 Post #39
 28th February 2007
Gold Member
Kimaru's Avatar
February 2005
3,078 Posts
I cannot find the download is it removed?
 Post #40
 28th February 2007
dranei's Avatar
July 2005
254 Posts
Awesome map too bad you can't swim in the space (I mean you can move in every direction, in space if you go up you can't get down, I think).
Reply

All times are GMT. The time now is 06:52AM.

Facepunch Studios 2010 - Server 'MARGE'