« first day (2366 days earlier)      last day (2660 days later) » 
02:00 - 18:0018:00 - 00:00

2:24 AM
0
Q: Twin Stick Shooter : Rotation is not smooth

jocteI'm currently working on a Twin Stick Shooter but I encountered a problem on the rotation of my player. The rotation snap on right angles. I'm guessing it's a problem due to the value that the joystick gives me back. via GIPHY This is my code: void FixedUpdate() { float hR = gamepad.Get...

 
3:22 AM
0
Q: ALLEGRO not drawing bitmap image

Lord Amateurthe allegro is not drawing the bitmap even if the condidition is true for(int i=0;i<20;i++) { for(int j=0;j<20;j++) { if(b.mmat[i][j]=='0') {fprintf(fp,"ok"); al_draw_bitmap(image,i*20,j*20,0);} } } al_flip_display();

0
Q: What is the point of a borderless fullscreen window?

JulienQuite a lot of game allow user to play in a "borderless fullscreen window" instead of a "fullscreen mode". I've been wondering. Why would one prefer a fullscreen window over the "built-in" fullscreen mode? Simple test of my own showed me, that using fullscreen mode instead yields better perform...

 
3:35 AM
0
Q: javaScript very simple multiplayer raid, question

MiloSx7I have been learning JS for about 3 months. I've been building a basic single-player idle grind game. The idea for a multiplayer part is simple: Join a clan leader starts a raid 4 other players from the clan accept the invitation and they all mine some difficult ore together All I need to upd...

 
 
2 hours later…
5:09 AM
0
Q: How do I determine the xy coordinates of a bullet when shooting from two different points on an object while turned?

user96875 Hello, I am completely new to game development so please bear with my newbie question. Image 1 shows how the bullets should look when shooting, one bullet coming from the sides (the black dots). How should I calculate the xy coordinates when turned on the side like in Image 2? cannon = instan...

 
5:51 AM
0
Q: Best way to implement Finite State Machine for player character

Somnacin7I'd like to implement the player in my game as an FSM as described in this guide to programming patterns in games. What is the best way to accomplish this? Should I implement each state as a monobehaviour with a state interface that can be enabled/disabled when the state transitions? Or would i...

 
 
2 hours later…
0
Q: Collision with a platform slope (jump through slope)

SaviorXTanrenSo, I've gotten platform and slope collision working in my game, but now I'm trying to work on the combination of the two of them. To list it out specifically: Like a platform, you can jump up through a slope from the bottom and the sides When landing on top of the slope, you collide with it an...

 
8:54 AM
-1
Q: What is the logic behind these design decisions

Mike Hunt In some games you are unable to play on the harder difficulties before complete it on a lower difficulty. Why? Achievements are popular. In some games you do not get an achievement for completing the game on the hardest difficulty (e.g. Bethesda RPG's) but for just about everything else, Why?

 
9:30 AM
0
Q: Questions about Libgdx

LynobThis question might be naive, I'm just making sure I grasp the API. Suppose you have an array of 3 objects Is array.get(o) the same as array.first(); and array.get(2) the same as array.peek()? Suppose you have an object moving on screen Is array.get(o).x the same as array.get(o).getX() By...

 
9:43 AM
0
Q: Unity3d what to use to save large data?

paul pCan anyone please tell me What to use to save data for Android.I have too much data to save(many npc-enemy stats) also it should work after updating I read on stack overflow that In Binarformatter when you update or change the class. Your old settings might be lost since the classes no longer mat...

 
10:36 AM
Still. No. Power.
 
huh, snowing?
 
Fucken ice storm took us all out
I'm tired
They are saying 80 percent should have power by tonight
 
DH.
Saying "80%" instantly made me remember the 80-20 theory
 
11:15 AM
Yeah and from the looks of it I'm gonna be part of the 20
All the surrounding houses have power, it's just like 50 houses on my street now.
And there are about another 100000
Fml
 
11:27 AM
0
Q: IAP purchases not restoring on Unity Android

Olivier GrechI'm currently trying to implement In-App Purchases in my app. They're working fine, until I uninstall the app and reinstall it or switch devices. At this point, the IAPs are not restored to the user like they're supposed to do. From the Unity documentation: On platforms that support it (e.g....

 
12:01 PM
0
Q: How to improve fbx sdk performance?

user68854I imported .fbx file to my internal format. It takes too long. I used profiler to find out why. It turnes out the most called functions are: FbxNode::Create() FbxAnimEvaluator::GetNodeGlobalTransform() FbxNode::EvaluateGlobalBoundingBoxMinMaxCenter() I managed to improve performance by cachin...

 
12:56 PM
@jgallant does that mean that you don't have to go to work?
 
0
Q: Ive created a learning plan for myself - would someone recheck it for me?

DWAIll try to keep this short: Currently im certified unfit for work, and this state will last about a year. I want to start creating video games. I worked as junior software developer in java about 3 years ago, but my programming skills are rusted, and i never programmed games before. My tools of...

 
user92578
finally a free afternoon/evening
 
PARTY! GAMEDEV!
 
user92578
*GAMEDEV!
 
DH.
1:07 PM
lol
 
user92578
I have one proper school day left which is pretty cool, tomorrow is a practice final in Finnish and starting from next Tuesday I only have other practice finals and actual finals left
 
DH.
Wait, finals on January?
 
user92578
No, they're in March
 
user92578
We have a longish break for studying
 
user92578
School year is split to five periods and high school consists of 13 periods
 
user92578
1:08 PM
So only three periods on senior year
 
DH.
The school system is a lot different of here
 
char temp = 0; it is 00000000 in bits ?
 
Here too :)
 
edited
 
user92578
nice!
 
DH.
1:10 PM
@yahoo5000 Now it's correct
 
good tnx
 
0
Q: Checking for alignment on an axis

LynobSuppose I have an array of 5 objects, each time the touches the screen I generate a new array and save the previous objects in another array. Is there a way to check if the object align perfectly on only axis with a reasonable error margin and detect objects wrongfully aligned? I could do it us...

 
so now whole vector elements have 00000000 right ?
 
user92578
that resize looks sketchy
 
user92578
700/8 performs integer division
 
1:12 PM
i could just write 70k but :D
 
user92578
oh wait sorry my bad, multiplication happens first ofc
 
@AlexandreVaillancourt nope at work now. Lol
 
yea meybe i will write 70k and then comment out mapwidth * mapheight / bits
 
@jgallant oh.. "Hey Jon, you smell. didn't you take a shower today??" "fuck. you." :P
 
i just realize that i dont need to write bits and read bits from file , because i would have to convert back to chars when i am sending , so now i will read chars and write chars and will unpack them at client
server probably wont need std::vector<bool> anyway cuz all job done by client
 
1:15 PM
@yahoo5000 mapRevealed.resize( 800 / 8 * 700, 0u );
No need to fill.
 
oh tnx Alexander
@AlexandreVaillancourt also about reading should i read straight into vector somehow or is it fine as it is ?
void Player::LoadRevealedMap()
{
	std::ifstream fin("..\\data\\map\\revealed\\" + std::to_string(id) + ".bin", std::ios::binary);
	int size = 800*700 / 8;//map syze in bytes
	unsigned char * buffer = new unsigned char[size];
	fin.read((char*)buffer, size);
	fin.close();
	mapRevealed.insert(mapRevealed.begin(), buffer, buffer + size);
	delete[] buffer;
}
 
@yahoo5000 I don't know :)
 
@yahoo5000 no don't read into the vector
You can't assume anything about the layout of a vector<bool>
 
its not bool anymore now its std::vector<unsigned char>
 
Then it's fine, assuming you .reserve space first
Or .resize as @AlexandreVaillancourt mentioned
 
1:21 PM
i mean but is there much difference ? from what i am doing now ?
or its just based on design ?
i mean it should be same because insert resize vector anyway .
 
I'd just try
mapRevealed.resize( size, 0u );
memcpy( mapRevealed.data(), buffer, size );
 
should not use memcpy ether
 
use std::copy instead
memcpy is part of C
give me sec
 
And also part of C++ because #legacy
 
1:26 PM
 
If c++ did not want you do do that, they would not have given you the .data() method.. :p
 
i think if u ask Josh he will tell you same
 
I'm not sure :)
 
i will ask Josh once hes on but i have googled and eveyrone saying should by using std::copy instead of memcpy
 
Ok, then use that :)
 
1:45 PM
@yahoo5000 does it work?
 
cant try untill client is ready for testing but i think it will
tnx
still need to pack everything and send then unpack , bit shift to std::vector<bool> and edit some shit and only then would be able to test
 
@yahoo5000 In your case, std::copy would not work, at least it does not work on my station with a buffer: I get a compilation error, the compiler is complaining that it's not safe.
 
Pfff, who needs safety, safety is for wussies
 
user92578
2:01 PM
"I always use the non _s versions of the functions!"
 
"I disable all warnings!"
 
user92578
 
@Tyyppi_77 Looks nice!
 
0
Q: line segment triangular-prism intersection

user283474What is the best way how to perform intersection test between triangular-prism (used as bounding "box") and line-segment (NOT ray)? The triangular prism is not axis-aligned and it is stored as a triangle (3x 3D coordinates) and the height of the triangle? If you advise me some "mathematicaly" op...

 
user92578
2:27 PM
 
user92578
With barrels and improved positioning
 
Will there be something animated on that screen?
 
Looks like the background moves? (the images show different backgrounds)
 
user92578
^ clever guy!
 
user92578
oh and it's actually a little larger, I forgot my zoom at 0.75
 
2:33 PM
But no animation about the crates and barrels, right?
 
user92578
no
 
user92578
what would a crate animation be like?
 
I don't know :p
If barrels were containing poisonous/toxic/radioactive material, you could have had bubbles coming out of it! But it's not, I think, it's more an explosive thing, right?
 
@AlexandreVaillancourt i got error too , anyway with vector i would rather use insert then memcpy or std::copy
 
user92578
yeah explosive stuff
 
2:39 PM
@yahoo5000 That works!
 
how ?
 
@yahoo5000 With insert..
 
oh yea
i know :D
cuz i have been doing that till now :D
and with vectors its better to do insert then memcpy
 
@yahoo5000 Why?
 
because insert is made for that :D
i dont want to google it now :D
 
2:43 PM
@yahoo5000 There are many things made for many things in c++.
 
yes everything made for a reason :D
 
"a reason" I don't think "a" is the appropriate term there :P
 
is it about my english or its some deep shit ? :D
 
No, not your English; everything is made for some reasons, rarely only one. You can use insert the way you do, and it's ok, and no one will complain about it, but saying to not use memcpy for that, because it's not c++ and because there are other ways is not a valid argument, IMHO :)
 
i mean i read about that i should be using std::copy instead of memcpy , about insert i heard somewhere something
 
2:51 PM
I think it can be safer, but since you use a buffer that you allocate yourself, safety is off anyway!
 
test this :)
 
@yahoo5000 I don't have time right now!
 
i mean that works
 
Ah, cool then!
 
user92578
3:17 PM
 
user92578
Thoughts on the theme-matching pathways?
 
user92578
I kinda like it but it does like a little weird, maybe I should just stay with the more abstract look
 
I think people will notice and will like it :)
 
DH.
I don't think you need anything to fill the blanks, but the paths matching the biome are cool
Those little details are funny to look at
 
user92578
All right, that's the way I'll go then!
 
user92578
3:20 PM
Now to figure out what's the easiest way to support various path types easily
 
user92578
hmm I think I'll just create different levels, that'll allow for some other stuff too later down the road if I want to do something different
 
1
Q: Problem with Rotating Third Person Radar UE4

enricosapiccoI am doodling on the Flying game template on UE4. I am making a 2D radar on top left. Radar's north direction is the pawn's forward direction. So when it approaches to an object with the dotProduct value of 1, dot representing the enemy object on the map has to approach from direction (0, -1) on ...

 
DH.
3:36 PM
Hey Tyyppi, have you added any secrets to the game? Like fake walls
 
user92578
nope, fake walls would actually require some effort
 
user92578
I have a few places where stuff could go
 
user92578
But not really sure what "stuff"
 
Hey, stop suggesting new features and let him release the game :P
*let's stop
 
DH.
I just made a question, I'm not asking him to do it!
 
3:42 PM
Haha yeah, I know :)
 
DH.
Just thinking because, you know, some people like objectives that aren't linear to the main progress of the game, like collectibles
 
user92578
yeah, well, I won't have time to add enough of them for actual collection in any case
 
DH.
Well, if it comes to a point your game is well received, you can always make like Chris and add stuff later!
 
var = nullptr; is it same as delete? or should i do delete and then var = nullptr ?
 
user92578
3:52 PM
that's not the same as delete
 
DH.
Delete is erasing stuff on the memory
 
user92578
nulling pointers after deletion is not required and not perhaps even necessary, depending on the situation
 
DH.
Doing var = nullptr is forgetting where that stuff exists
 
@Tyyppi_77 certainly a best practice though
To avoid accidental bugs happening later
 
oh yea right relete dealocate memory on heep
 
user92578
3:53 PM
Is it? I don't do that at all
 
user92578
I feel like it'd be nicer to crash and get a chance to fix the bug & the potential missmanaged memory that causes the error
 
well i am writing mysql wrapper and for unknown reason want to null every pointer to mysql
 
@Tyyppi_77 delete ptr; ptr = nullptr is a best practice so you can't accidentally use ptr at a later moment (well you still can, but you'd notice instantly as dereferencing a nullpointer as opposed to it maybe working)
 
user92578
hmm that's true
 
guys should i return true after catch or inside try ?
bool MySQL::Connect(std::string database)
{
	try
	{
		driver = sql::mysql::get_mysql_driver_instance();
		con = driver->connect(cfg.db.host, cfg.db.username, cfg.db.password);
		con->setSchema(database);
	}
	catch (sql::SQLException &e)
	{
		std::string error = "Mysql Error code :" + std::to_string(e.getErrorCode());
		Log(error);
		error = "Mysql State:" + e.getSQLState();
		Log(error);
		error = e.what();
		Log(error);
		return false;
	}
	return true;
}
 
4:00 PM
@yahoo5000 is var a shared_ptr?
 
raw pointer
i should do shared but i think there is some issues with mysql and shared ptrs
 
I'd say after as the catch is a clear error point when the program should return to the caller
 
Inside try probably
 
yea i was thinking that too because once he fails try execute catch and then will go to everything else below
not 100%
or not even matter because if he returns false it wont execute return true anyway
 
4:59 PM
Are you going to directly access a remote database?
@yahoo5000
 
5:14 PM
0
Q: Should we do something with tags 'fsm' and 'state'?

Alexandre VaillancourtWe have these two tags: state: 120 questions, one synonym (states), a description "Generally used in correlation with a state machine." fsm: 49 questions, a description "Finite State Machines model game flow, AI behaviour, or other processes using a set of discrete states and transitions betwee...

 
@JoshPetrie That guy who asked the question about the Xbox One store seems to have deleted his account..!
 
The children are doomed https://t.co/olLXFvjzUy
this is horrifying
especially the javascript one
 
Brain fucking babies...
 
0
Q: make camera look at a box and cover it

UPO33as u may know In most game engines (Unity, UE4) if we select a model and press F, camera moves and focuses to the selected model, I want to implement that on my models. I have a perspective camera and world space bounding box of the model, how can I get an appropriate distance to cover the entir...

 
5:33 PM
@AlexandreVaillancourt what do u mean ?
 
Is that server code?
 
yea
 
Oh, ok then :)
 
you though client ? :D
 
Big security issue if you allow your clients to do that :)
 
5:34 PM
i know
 
I just wanted to make sure hehe
 
u mean sql injection ?
or what ?
 
Well they could make their own queries
 
how do they do peer to peer ? ?
i mient client to client
they write like server adaptor or something ?
 
No, client to server, that is, if your server is just a sql db :P
 
5:36 PM
yea i know thats another question how do they do client to client ?
i mean peer to peer server
as far as i know its fastest these days
 
I'm not sure I understand what you mean..
 
i mean now i am doing client to server game , but there is games who doing client to server and client to client
i mean sending data
like position and ect probably not sure how its works
as far as i know its called peer to peer server or something
its something like torrents i think
 
I think RTS use that kind of architecture; actions are transmitted right away to other clients and the server just makes sure that everything is legit, as far as I remember..
I read about it, but it's been a while...
 
oh yea i think that what it is RTS its called :D
 
Yeah, Starcraft and such..
 
5:40 PM
yea i think most of MMO using that these days
 
I'm not sure about MMO, though..
 
atleast Trinity force using it (WOW)
 
@yahoo5000 Client to client is MUCH harder to implement that client to server
 
yea i know , its the only reason i am doing client to server :D
 
Anyone here on arch linux? I'm having trouble with wifi and google has solved nothing :(
 
5:55 PM
what kind of problem ?
is it sandbox ?
VM ?
 
Disconnects randomly, pages are loading very slowly and logs show up empty
No VM
Dual boot though..
 
have u tried to renew and lush dns ?
 
Dont it do that on reboot?
 
command port
sudo dhclient -v
sudo dhclient -v -r
# service nscd restart
it wont do it on reboot
 
02:00 - 18:0018:00 - 00:00

« first day (2366 days earlier)      last day (2660 days later) »