.gifs to come
.gifs to come
Wow, nice picture to start a new page!
And here’s a .gif! Made it into my signature, actually.
I’m pretty good at doing these in HQ, I think - let me know your thoughts?
And here’s a .gif! Made it into my signature, actually.
I’m pretty good at doing these in HQ, I think - let me know your thoughts?
BRILLIANT If you ever see some of the ones I made in invasion, and want to remake them in HD, feel free to!!! I’d be happy to have a revamped version of the one in my signature
BRILLIANT
If you ever see some of the ones I made in invasion, and want to remake them in HD, feel free to!!! I’d be happy to have a revamped version of the one in my signature
That’s proc rig yes?
It’s really hard to find a good loop point for this. If you can find out the loop interval, I’ll make one with that for you.
You use tackler? The problem is that some features have a very long loop time, longer than the tackler’s cloak. Like that sun in one of the PVP maps turns on itsself quite slowly so it’s impossible to loop. You also have to make sure there are no turning asteroids in the background, because they turn VERY slowly.
You use tackler? The problem is that some features have a very long loop time, longer than the tackler’s cloak. Like that sun in one of the PVP maps turns on itsself quite slowly so it’s impossible to loop. You also have to make sure there are no turning asteroids in the background, because they turn VERY slowly.
I can edit the ship out of the shot if need be.
Your signature - is the data automatically pulled, or do you manually update it every once in a while.
If it’s the former, how can I do something similar?
Your signature - is the data automatically pulled, or do you manually update it every once in a while.
If it’s the former, how can I do something similar?
It is automatically pulled, but I have no idea how ^^ Someone very intelligent in our corp made it
It is automatically pulled, but I have no idea how ^^ Someone very intelligent in our corp made it
It’s not too up to date - my w/l is 1.92, and it shows fleet instead of officer rank.
It is automatically pulled, but I have no idea how ^^ Someone very intelligent in our corp made it
Its quite easy to make such signature
<?php
if (isset($_GET["name"])) { //check if user gave you his name
$name = $_GET["name"]; //set name variable to the var the user gave to you
}
$json = file_get_contents("http://web.star-conflict.com/pubapi/v1/userinfo.php?nickname=".$name); //get user stats from sc server
$data = json_decode($json, TRUE); //make the stats readable for the programm
CreateBanner($data); //call the fuction createBanner and send the user stats to it
function CreateBanner($data) {
$source = "banner2.jpg"; //variable that holds the source pic we will write one
$image = imagecreatefromjpeg($source); //convert it to php image format
$Font = '24Janvier-Light.ttf'; //variable that holds the font we will use
$color = imagecolorallocate($image, 255, 255, 225); //font color
$shadow = imagecolorallocate($image, 33, 33, 33); //font shadow color
$averageBattleTime = $data['data']['pvp']['totalBattleTime'] / $data['data']['pvp']['gamePlayed']; //var that holds the averageBattleTime
$wl = $data['data']['pvp']['gameWin'] / ($data['data']['pvp']['gamePlayed'] - $data['data']['pvp']['gameWin']); //var that holds the win/loss ratio
imagettftext($image, 16, 0, 50, 31, $shadow, $Font, $data['data']['clan']['tag'].' '.$data['data']['nickName']); //write nickname and clan tag to the pic
imagettftext($image, 16, 0, 50, 30, $color, $Font, $data['data']['clan']['tag'].' '.$data['data']['nickName']);
imagettftext($image, 16, 0, 200, 31, $shadow, $Font, 'Battles '.$data['data']['pvp']['gamePlayed']); //write number of played games to the pic
imagettftext($image, 16, 0, 200, 30, $color, $Font, 'Battles: '.$data['data']['pvp']['gamePlayed']);
imagettftext($image, 16, 0, 200, 56, $shadow, $Font, 'Wins: '.$data['data']['pvp']['gameWin']); //write won games to the pic
imagettftext($image, 16, 0, 200, 55, $color, $Font, 'Wins: '.$data['data']['pvp']['gameWin']);
imagettftext($image, 16, 0, 200, 81, $shadow, $Font, 'W/L Ratio: '.number_format($wl, 2));// W/L Ratio
imagettftext($image, 16, 0, 200, 80, $color, $Font, 'W/L Ratio: '.number_format($wl, 2));
imagettftext($image, 16, 0, 50, 56, $shadow, $Font, "Karma: " .$data['data']['karma']); //Karma
imagettftext($image, 16, 0, 50, 55, $color, $Font, "Karma: " .$data['data']['karma']);
imagettftext($image, 14, 0, 50, 81, $shadow, $Font, "Elo: " .number_format($data['data']['effRating'], 0,'.',''));//Elo
imagettftext($image, 14, 0, 50, 80, $color, $Font, "Elo: " .number_format($data['data']['effRating'], 0,'.',''));
if(!isset($_GET['debug'])) //not needed stuff; only needed for error output
{
header('Content-type: image/jpg'); //send to the browser that you will send him an picture(or so)
}
ImageJPEG($image); //convert the image to JPEG so the browser can show it
imagedestroy($image); //Destroy the Image coz you dont need it anyomre
}
?>
Its quite easy to make such signature
<?php if (isset($_GET["name"])) { $name = $_GET["name"]; } $json = file_get_contents("http://web.star-conflict.com/pubapi/v1/userinfo.php?nickname=".$name); $data = json_decode($json, TRUE); $banner = new Banner(); $banner->CreateBanner($data); class Banner { private $source = "banner2.jpg"; public function CreateBanner($data) { $image = imagecreatefromjpeg($this->source); $averageBattleTime = $data['data']['pvp']['totalBattleTime'] / $data['data']['pvp']['gamePlayed']; $Font = '24Janvier-Light.ttf'; $color = imagecolorallocate($image, 255, 255, 225); $shadow = imagecolorallocate($image, 33, 33, 33); $wl = $data['data']['pvp']['gameWin'] / ($data['data']['pvp']['gamePlayed'] - $data['data']['pvp']['gameWin']); imagettftext($image, 16, 0, 50, 31, $shadow, $Font, $data['data']['clan']['tag'].' '.$data['data']['nickName']); imagettftext($image, 16, 0, 50, 30, $color, $Font, $data['data']['clan']['tag'].' '.$data['data']['nickName']); imagettftext($image, 16, 0, 200, 31, $shadow, $Font, 'Battles '.$data['data']['pvp']['gamePlayed']); imagettftext($image, 16, 0, 200, 30, $color, $Font, 'Battles: '.$data['data']['pvp']['gamePlayed']); imagettftext($image, 16, 0, 200, 56, $shadow, $Font, 'Wins: '.$data['data']['pvp']['gameWin']); imagettftext($image, 16, 0, 200, 55, $color, $Font, 'Wins: '.$data['data']['pvp']['gameWin']); imagettftext($image, 16, 0, 200, 81, $shadow, $Font, 'W/L Ratio: '.number_format($wl, 2)); imagettftext($image, 16, 0, 200, 80, $color, $Font, 'W/L Ratio: '.number_format($wl, 2)); imagettftext($image, 16, 0, 50, 56, $shadow, $Font, "Karma: " .$data['data']['karma']); imagettftext($image, 16, 0, 50, 55, $color, $Font, "Karma: " .$data['data']['karma']); imagettftext($image, 14, 0, 50, 81, $shadow, $Font, "Elo: " .number_format($data['data']['effRating'], 0,'.','')); imagettftext($image, 14, 0, 50, 80, $color, $Font, "Elo: " .number_format($data['data']['effRating'], 0,'.','')); if(!isset($_GET['debug'])) { header('Content-type: image/jpg'); } ImageJPEG($image); imagedestroy($image); }
Like I say, a very intelligent person! I have no idea what all that goobledegook means XD
Like I say, a very intelligent person! I have no idea what all that goobledegook means XD
I added some comments to the code so even you should understand how it works
I added some comments to the code so even you should understand how it works
Thanks! Well yeah that makes it a lot clearer
Its quite easy to make such signature
<?php if (isset($_GET["name"])) { //check if user gave you his name $name = $_GET["name"]; //set name variable to the var the user gave to you } $json = file_get_contents("http://web.star-conflict.com/pubapi/v1/userinfo.php?nickname=".$name); //get user stats from sc server $data = json_decode($json, TRUE); //make the stats readable for the programm CreateBanner($data); //call the fuction createBanner and send the user stats to it function CreateBanner($data) { $source = "banner2.jpg"; //variable that holds the source pic we will write one $image = imagecreatefromjpeg($source); //convert it to php image format $Font = '24Janvier-Light.ttf'; //variable that holds the font we will use $color = imagecolorallocate($image, 255, 255, 225); //font color $shadow = imagecolorallocate($image, 33, 33, 33); //font shadow color $averageBattleTime = $data['data']['pvp']['totalBattleTime'] / $data['data']['pvp']['gamePlayed']; //var that holds the averageBattleTime $wl = $data['data']['pvp']['gameWin'] / ($data['data']['pvp']['gamePlayed'] - $data['data']['pvp']['gameWin']); //var that holds the win/loss ratio imagettftext($image, 16, 0, 50, 31, $shadow, $Font, $data['data']['clan']['tag'].' '.$data['data']['nickName']); //write nickname and clan tag to the pic imagettftext($image, 16, 0, 50, 30, $color, $Font, $data['data']['clan']['tag'].' '.$data['data']['nickName']); imagettftext($image, 16, 0, 200, 31, $shadow, $Font, 'Battles '.$data['data']['pvp']['gamePlayed']); //write number of played games to the pic imagettftext($image, 16, 0, 200, 30, $color, $Font, 'Battles: '.$data['data']['pvp']['gamePlayed']); imagettftext($image, 16, 0, 200, 56, $shadow, $Font, 'Wins: '.$data['data']['pvp']['gameWin']); //write won games to the pic imagettftext($image, 16, 0, 200, 55, $color, $Font, 'Wins: '.$data['data']['pvp']['gameWin']); imagettftext($image, 16, 0, 200, 81, $shadow, $Font, 'W/L Ratio: '.number_format($wl, 2));// W/L Ratio imagettftext($image, 16, 0, 200, 80, $color, $Font, 'W/L Ratio: '.number_format($wl, 2)); imagettftext($image, 16, 0, 50, 56, $shadow, $Font, "Karma: " .$data['data']['karma']); //Karma imagettftext($image, 16, 0, 50, 55, $color, $Font, "Karma: " .$data['data']['karma']); imagettftext($image, 14, 0, 50, 81, $shadow, $Font, "Elo: " .number_format($data['data']['effRating'], 0,'.',''));//Elo imagettftext($image, 14, 0, 50, 80, $color, $Font, "Elo: " .number_format($data['data']['effRating'], 0,'.','')); if(!isset($_GET['debug'])) //not needed stuff; only needed for error output { header('Content-type: image/jpg'); //send to the browser that you will send him an picture(or so) } ImageJPEG($image); //convert the image to JPEG so the browser can show it imagedestroy($image); //Destroy the Image coz you dont need it anyomre } ?>
Thank you! I’m not well versed in php, but I can probably figure that out.
What do you use to make the gifs?
Thank you! I’m not well versed in php, but I can probably figure that out.
I’m also not that versed in php. I used some parts from the banner code from 2moons (https://github.com/jkroepke/2Moons) and modifed it(was nearly 1y ago i made this code)
Into the fiery flames of hell (with a pumpkin or two…)
Burning planet