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.


Topics - The 1

Pages: [1] 2
1
Modification Help / fxLight to follow shot projectile
« on: May 07, 2018, 04:44:20 PM »
The default projectile light is loving stuff and i want to attach an FX light onto a projectile or make it follow the projectile until it dies.
So far i've instantiated a new light under the "onFire" action of the weapon like this:
Code: [Select]
%light = new fxlight()
{
dataBlock = BrightLight;
enable = true;
iconsize = 1;
position = %this.projectile.pos;
};
and i know that this doesnt copy the movement of the projectile but i've tried adding this line so it would get destroyed alongside the projectile:
Code: [Select]
%light.attachToObject(%obj);However, this causes new light to instantiate on the blockhead's left hand. This isnt the player flashlight because you can turn that on and off without affecting the other light.
I've also tried using:
Code: [Select]
%this.projectilebut i dont know the syntax for it and wether it even has a position variable.

Any help?

2
Off Topic / Is anyone here familiar with DefleMask?
« on: August 22, 2015, 03:38:34 PM »
I'd just like to know if anyone here knows how to use deflemask tracker and would volunteer to convert a song on it?

3
Modification Help / Get vehicle color.
« on: August 22, 2015, 12:49:54 PM »
I need to get the current color of the vehicle or the spawnbrick and apply it in a datablock.

How can this be done?

4
Modification Help / How to access toggleZoom?
« on: April 28, 2015, 09:48:09 AM »
My friend is working on a weapons which is trying to access "toggleZoom".
Code: [Select]
toggleZoom(1);
But when he tries to call the function, the console says that there isnt anything by the name toggleZoom?

Is there any other way to access it?
If not, is there any other way to store the player's original FOV in a varialbe?

The strange thing is, that it works perfectly as a console command when entered the same way as i meantioned before.

5
Off Topic / The worst CNC-Software experience i've ever had.
« on: April 08, 2015, 07:22:22 AM »
So, today during my CNC programming class i was introduced to the worst piece of software i've ever used and i want to warn you guys and also let off some steam.
Until now, we've designed our stuff with AutoCAD, AutodeskInventor, Rhinoceros5 and our favourite: SolidWorks. But today we were introduced to a program called
"Surfcam6" and oh boy, I got a bad feeling the very second it booted up. We had to enter our license server address manually(there was no serverlist or history) and then it would give you a list of licenses that you can use within the server.
We had to choose our license from the list, there were twenty of them. However when another student pick up a license, this license becomes unavaliable for others(which the license list doesnt indicate in any way).
So after i got a license i started to go trough the manual. Then again the manual was outdated and some functions presented in the manual were removed or changed. Anyways, I started following a tutorial about making a random steel lid.
I found out while making a rectangle for the base that this program was coordinate based and that you would need to draw every shape either on snap points of other elements or world coordinates(no freehand whatsoever)
Then i made my first mistake while misplacing a hole on the base, i trid undoing it but Ctrl+Z did nothing. Then i checked the file menu for any kind of undo action but no, there wasnt anything. So i tought that maybe its called something else,
So i decided to do a google search. What i found was a ton of complains and rageposts about this program not having an undo feature, YES YOU HEARD ME RIGHT, IF YOU forget UP YOU NEED TO START OVER.

https://solidedging.wordpress.com/2012/07/17/surfcam-v6-and-the-sorry-saga-of-undo/
http://www.cnczone.com/forums/surfcam/28733-surfcam-doesnt-undo-feature.html
http://www.practicalmachinist.com/vb/cad-cam/help-surfcam-vel-3-a-194846/

Wow, i really dont know what to say about this. But the worst is still ahead!
So once i completely remade my piece from square 1, I tried creating chamfers on the edges of the piece and worth mentioning is that all other programs so far have automatically made the chamfers according to the direction of the corner you apply them to.
But when i used surfcam's tool, This is what happened:

This stuff right here is loving unbeliveable, Turned out that you need to consider the way that surfcam detects corners(or more precisely how it does not) You ALWAYS need to start the chamfer from the bottom left corner of your piece and then move clockwise.


And guess what? No undo!

If you couldn't guess already, i was getting quite pissed at this software. But after alot of work, i finally finished drawing the piece.
I thought it was smooth sailing from now on. All i needed to do now was to configure the Tool-bit and the milling pattern for the CNC machine.
and to not make this too long, lets say it didnt really work in my favor.

Anyways the bottom line is: FELLOW MACHINISTS AND HOBBYISTS! DONT BUY THIS stuffWARE! Theres tons of other cheaper software that does this better and with less frustration.

6
Modification Help / Apply changes in prefs.cs
« on: March 15, 2015, 06:09:00 AM »
So, I've got a script which toggles
Code: [Select]
$pref::Input::UseAutoReturnSteering
It works fine, However the effect won't apply untill you go into the options and press "done".

Is there any way of doing this via my script?

7
Suggestions & Requests / Raise the maximum draw distance limit
« on: February 21, 2015, 08:20:33 AM »
The title pmuch sums it.

This really needs to happen because working on large builds and such is starting to piss me off with the current limit of 1000.

I know that draw distances larger than terrains used to cause problems but now that they are gone, Maybe its time to raise the limit again?


8
I know that you can use
Code: [Select]
.getControllingClientto get the player that controls the vehicle, But is there a way to identify a passenger who's mounted on for example mount1, which is not in control of the vehicle?

9
Help / Is there a way to limit yor framerate?
« on: December 25, 2014, 10:49:21 AM »
I was just wondering, Because my machine isnt really built for this and my GPU screams for mercy when games run at over 140fps

10
Help / Can the max draw distance be over 1000?
« on: December 22, 2014, 11:09:41 AM »
The title pretty much sums it. I've been trying several tricks to increase the draw distance over the maximum limit (1000.000).
But is this something that can be changed, Or is it tied to some limitations or values set in the engine?

11
Modification Help / Loading ".hfl" files.
« on: July 15, 2014, 03:49:00 AM »
Im wondering if there is a way to load .hfl files from a GuiTextList and then display them on a GUIMLTextControl? Like the f1 help menu does?

12
Modification Help / Help needed with modifying shootonclick script.
« on: March 09, 2014, 09:45:56 AM »
So, I am using the script from Heedicalking's AA turret and i want to change the projectile spawning point to "eye" instead of the current position variable that just offsets the spawning point from the turret's root.

Code: [Select]
package ShootOnClick_Pack
{
function armor::onTrigger(%db,%obj,%slot,%val)
{
if(%obj.getClassName()$="Player")
{
if(%slot==0)
{
if(%val)
{
if($Sim::Time<%obj.client.SOC_LastFireTime)
{
return;
}
}
%obj.SOC_Shoot(%slot,%val);
}
}
return Parent::onTrigger(%db,%obj,%slot,%val);
}
};
ActivatePackage(ShootOnClick_Pack);

function repeatedVectorAddwithScale(%vecs)
{
%vec="0 0 0";
%cnt=getFieldCount(%vecs);
for(%i=0;%i<%cnt;%i++)
{
%fld=getField(%vecs,%i);
%tvec=getWords(%fld,0,3);
%scale=getWord(%fld,3);
%svec=vectorScale(%tvec,%scale);
%vec=vectorAdd(%vec,%svec);
}
return %vec;
}

function SimObject::getLeftVector(%obj)
{
return vectorCross(%obj.getEyeVector(),%obj.getUpVector());
}

function SimObject::getRightVector(%obj)
{
return vectorScale(%obj.getLeftVector(%obj),-1);
}

function Player::SOC_Shoot(%obj,%slot,%val)
{
if(!%val) {cancel(%obj.SOC_reshoot);return;}

%mnt= %obj.getObjectMount();
if(!isObject(%mnt))
{
return;
}

%data= %mnt.getDatablock();

%mountObj= %mnt.getMountNodeObject(%data.shootOnClick_RequiredSlot);
if(%mountObj!$=%Obj) {return;}

if(%data.shootOnClick)
{
//Checks OK, shoot it all.
%cnt=%data.shootOnClick_ProjectileCount;
for(%i=0;%i<%cnt;%i++)
{
%pos= %mnt.getPosition();
%PVec= %data.ShootOnClick_Position[%i];
%VVec= %data.ShootOnClick_Velocity[%i];
%iPos= repeatedVectorAddwithScale(
%mnt.getEyeVector() SPC getWord(%PVec,0) TAB
%mnt.getLeftVector() SPC getWord(%PVec,1) TAB
%mnt.getUpVector() SPC getWord(%PVec,2)
);
%iVel= repeatedVectorAddwithScale(
%mnt.getEyeVector() SPC getWord(%VVec,0) TAB
%mnt.getLeftVector() SPC getWord(%VVec,1) TAB
%mnt.getUpVector() SPC getWord(%VVec,2)
);
%scale=%data.ShootOnClick_Scale[%i];
if(%scale$="") {%scale="1 1 1";}
%p= new Projectile()
{
dataBlock= %data.ShootOnClick_Projectile[%i];
initialPosition= vectorAdd(%pos,%iPos);
initialVelocity= %iVel;
sourceObject= %obj;
client= %obj.client;
sourceSlot= %slot;
scale= %scale;
};missionCleanup.add(%p);
}
serverPlay3d(%data.ShootOnClick_Sound,%pos);

//If hold, schedule.
if(%data.ShootOnClick_Hold)
{
//Delay according to datablocks.
%obj.SOC_reshoot= %obj.schedule(%data.ShootOnClick_ReshootDelay,SOC_Shoot,%slot,%val);
}
%obj.client.SOC_LastFireTime=$Sim::Time+%data.ShootOnClick_ShootDelay/1000;
}
}

What im thinking is that instead of
Code: [Select]
%pos= %mnt.getPosition();there would be something like
Code: [Select]
%pos= %mnt.getEyeVector[or transform]();
But i have no idea how it works so i need some help with this.

13
Suggestions & Requests / Get rid of cache.db
« on: December 17, 2013, 06:34:48 AM »
before the launcher update (V15?) Blockland worked all fine for me and many others who use osx versions 10.6 or <.

After the launcher update, the downloads form all servers are written in a cache.db file instead of the addons folder (i think). And this is where all the problems began occuring, Random crashes, Sqlite errors and MUCH trouble loading addons with different versions that you have currently installed.

There is some existing solutions for the crashes and sqlite errors, Like deleting cache.db or making it "read-write" over and over again.

But none of these is an actual solution to these problems.
Even tough the cache file is faster to download for the sake of mac players, please do it the old way.

14
Help / Hacked user? Or just RTB?
« on: October 05, 2013, 12:39:12 PM »
Today when i logged in to blockland, My RTB had first trouble logging in. Then a message popped up saying the my ID was already logged in.

I have ran my blockland user on 2 computers before (1 for hosting server and the other one for playing) And blockland it self wont say anything about the same user being online twice at the same time, but RTB sure has.

15
Help / Serious trouble running blockland.
« on: July 11, 2013, 08:27:06 AM »
Blockland has been running quite badly recently. My computer is completely healthy and isn't that old.
But today blockland completely died on my computer, As it has alot of trouble getting started adn even when the game starts after 10-20minutes. when i try to start a singleplayer game or join any multiplayer game. The load just freezes and after about 2-5 minutes blockland crashes and leaves a bunch of errors and warnings. Most common ones are sqlite erros. I've tried every single trick trying to fix this error (deleting cache.db or turning it to read&write). None of theese seem to work anymore and i cannot play the game at all.

Here are my logs:

Pages: [1] 2