Blockland Forums > General Discussion
BlockoStation - Duplorcator getStack SimSet saving, and RIP Joe Rahl
Axolotl:
OK, made a new environment.
--- Code: (Environment) ---$EnvGuiServer::SimpleMode 0
$EnvGuiServer::SkyFile Add-Ons/Sky_SpacePack/Space1.dml
$EnvGuiServer::WaterFile NONE
$EnvGuiServer::GroundFile Add-Ons/Ground_White/white.ground
$EnvGuiServer::SunFlareTopTexture base/lighting/corona2.png
$EnvGuiServer::SunFlareBottomTexture base/lighting/lightFalloffMono.png
$EnvGuiServer::DayOffset 0
$EnvGuiServer::DayLength 300
$EnvGuiServer::DayCycleEnabled 0
$EnvGuiServer::DayCycle Add-Ons/DayCycle_Default/default.daycycle
$EnvGuiServer::Sunational socialistmuth 0
$EnvGuiServer::SunElevation 10.0000
$EnvGuiServer::DirectLightColor 0.600000 0.650000 0.750000 1.000000
$EnvGuiServer::AmbientLightColor 0.500000 0.500000 0.500000 1.000000
$EnvGuiServer::ShadowColor 0.300000 0.300000 0.400000 1.000000
$EnvGuiServer::SunFlareColor 0.800000 0.850000 1.000000 1.000000
$EnvGuiServer::SunFlareSize 0.600000
$EnvGuiServer::VisibleDistance 1000
$EnvGuiServer::FogDistance 1000
$EnvGuiServer::FogHeight
$EnvGuiServer::FogColor 0.000000 0.000000 0.000000 1.000000
$EnvGuiServer::WaterColor 1.000000 1.000000 1.000000 0.000000
$EnvGuiServer::WaterHeight 0
$EnvGuiServer::UnderWaterColor 0 0 128 128
$EnvGuiServer::SkyColor 1.0 1.0 1.0 1.0
$EnvGuiServer::WaterScrollX 0
$EnvGuiServer::WaterScrollY 0
$EnvGuiServer::GroundColor 1.000000 1.000000 1.000000 0.000000
$EnvGuiServer::GroundScrollX 0
$EnvGuiServer::GroundScrollY 0
$EnvGuiServer::VignetteMultiply 0
$EnvGuiServer::VignetteColor 0.000000 0.000000 0.000000 0.392157
--- End code ---
--- Quote from: Electrk on August 26, 2012, 03:57:54 PM ---"1-5% complete"
Why make a topic then?
--- End quote ---
To share this idea
Axolotl:
OK, working on a bit of code that makes the sun move in an orbit (the orbit can be stretched tilted in degrees).
Swat 3:
It'll be nice if you release that code for way better SpaceSpation or Space RP's.
Axolotl:
Orbiting illusion script is complete.
--- Code: ---//----------PROJECT: Blocko Station 13
//----------AUTHOR: Axolotl (BL_ID 32440)
//----------SCRIPT: Orbiting Sun
//Orbiting script, makes the sun change its azimuth based on a time
$BlockoStation13::SunRevolution = 360; //amount of seconds it takes for one revolution
$BlockoStation13::SunTilt = 10;
function mScale(%in, %oldMin, %oldMax, %newMin, %newMax){return (%in / ((%oldMax - %oldMin) / (%newMax - %newMin))) + %newMin;}
package BlockoStation13_Sun
{
function BlockoStation13_SunTick()
{
cancel( $BlockoStation13::loop );
$BlockoStation13::lastLoopTime = getSimTime();
%posOnRev = ($BlockoStation13::lastLoopTime % ($BlockoStation13::SunRevolution * 1000) ) + 1;
%degrees = mScale(%posOnRev,1,($BlockoStation13::SunRevolution * 1000),1, 360);
%sine = mSin(mDegToRad(%degrees));
setSunational socialistmuth(%degrees);
setSunElevation(%sine * $BlockoStation13::SunTilt);
$BlockoStation13::loop = schedule( 33 , 0, "BlockoStation13_SunTick"); //this doesn't cripple the server
}
};
if(!isObject(FakeAdminClient)) //Create a fake client that can be passed to serverCmds, allowing
{ //us to call it even if there are no admins on the server
new AiConnection(FakeAdminClient);
FakeAdminClient.isAdmin = 1;
FakeAdminClient.isSuperAdmin = 1;
}
function setSunational socialistmuth(%amount)
{
if(%amount > 360)
%amount-=360;
if(%amount < 0)
%amount+=360;
serverCmdEnvGui_SetVar(FakeAdminClient,"Sunational socialistmuth",%amount);
}
function setSunElevation(%amount)
{
serverCmdEnvGui_SetVar(FakeAdminClient,"SunElevation",%amount);
}
activatepackage(BlockoStation13_sun);
BlockoStation13_SunTick();
--- End code ---
Adam487 did the environment change hack part, I just got it out of his environment events.
Axolotl:
I think I got the atmos system sort of planned out, but idk what to do.
If I would make the generator do a 643 area full of atmos zonebricks, then it would spike the brickcount to 262144.
1282*8 would equal 131072. 962*8 would equal 73728.
Hmmm...