Welcome, Guest. Please login or register. Did you miss your activation email?

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.

Messages - CytraL

Pages: [1] 2 3 ... 5
System / Re: Problem with threads on Linux
« on: July 24, 2017, 06:13:52 pm »
I have the same issue... but loading assets in a thread:

When do this:
Code: [Select]
sf::Thread thread(&CAssetManager::load, m_pAssetManager);

Get this:
Code: [Select]
[59761a92][CGame]: Initializing game...
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
cherryjam_d: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

System Info
Code: [Select]
- OS: Mint 18.2 sonya
- Kernel: x86_64 Linux 4.10.0-27-generic
- Resolution: 2944x1080
- DE: Cinnamon 3.4.4
- WM: Muffin
- CPU: Intel Core i7-3770 CPU @ 3.9GHz
- GPU: GeForce GTX 970
- RAM: 3364MiB / 11971MiB

If i try to run the program several times.... some times it runs without any error. O_o
The same code (thread stuff) with "SFML 2.3v5" (version installable via apt-get) works fine... but with SFML 2.4.2 this bug appears :/

I also had to apply this patch to compile the library (SFML v2.4.2): https://en.sfml-dev.org/forums/index.php?topic=20638.0

SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: February 27, 2017, 03:09:10 pm »
OOopss... The colour is gone! O_o.... looks like broken printer xD

Anybody can help me with textures?


SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: December 28, 2016, 08:37:21 pm »
Thx eXpl0it3r!

Here a video to show the current status of the "game":



SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: December 26, 2016, 03:26:16 pm »
Thx! i'm working again on this... fixed some bugs and implemented new weapons like this...

** Created using B├ęzier curves.

The next step is create the "missions system"... if any knows good implementation for that... show me it! xD

Cheer! Happy Holidays!

SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: October 08, 2016, 06:05:20 am »
I'm very impressed by your project! Great job!
Can you give us a bit more info about the engine structure? Do you use ECS? Do you use scripting? It will be interesting to read how such complex stuff holds together. :D

Thx!! for now not use scripting.. but in the future when working on missions and npc's i like add lua scripting support. I can't explain good because my english is too poor :(

Yes.. ECS.

Used Tiled for mapping, Box2D for physics, 'pseudo' A* Pathfinding (I don't need know the short way to go from A to B) + raycast for A.I...
All systems are "separated" by engines.. lighting, physics, weather, ...

** Perhaps not readable :/

Cheers! (Sry again for my bad english :/)

SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: October 05, 2016, 05:11:43 am »
eXpl0it3r thx.. XD

I'm back with this project... added a simple weather system...


Used Perlin noise for water puddles/snowdrifts ...

SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: April 06, 2016, 07:04:59 am »
Continue working... improved A.I. a bit, start with HUD stuff.. breakable lights, ...



SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: April 02, 2016, 01:22:54 am »
@Tank: xDD thx ;)

Improved light system a bit...

SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: March 30, 2016, 12:29:03 am »
Thx! ;)

I'm from Spain (Galician), the history is about "Nintendo-PlayStation-Xbox-PC Master Race" war... you are an linux hero that can stop all these situation... etc.. etc.. this try to be an humoristic history :\
But i don't have any "strong" history defined...


SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: March 29, 2016, 04:14:25 am »
@Elias Daler: Thx! your project looks really good! ;) and no textures found for "top-down" games... :(

New video, here the dummy peatons... and start with the sad part of implement "gore". I said that i don't like use GTA textures and now i use the character sprite too :\ ...


SFML projects / Re: Unnamed Project: Top-Down 2D Game
« on: March 03, 2016, 05:56:04 am »
Yepaa thx! ;)
Yes, i'm trying do something like GTA (without 3D)... but the "history" isn't about mafia... I hope find other textures and not use the GTA stuff  xD

Project Structure:
Code: [Select]
  - interfaces
  CB2Engine: Box2D
  CFEngine: FMod
  CFxEngine: Particles
  CLightEngine: Lights
  CGame: Register engines, game loop, ... (Singleton)
  CAssetsManager: Fonts, Sounds and Textures
  - primitives
  CCharacter: Human Characters
  CExplosion: Explosions (Box2D Sensor)
  CGameController: Abstract Class
  CMapRender: Render Map
  CMenus: Render Menus
  CPlayer: Basic player data
  CPlayerIA: I.A. player
  CTest: Current gameplay

Memory Leaks Check (valgrind):
Code: [Select]
==26412== HEAP SUMMARY:
==26412==     in use at exit: 68,634 bytes in 504 blocks
==26412==   total heap usage: 256,017 allocs, 255,513 frees, 572,064,336 bytes allocated
==26412== LEAK SUMMARY:
==26412==    definitely lost: 0 bytes in 0 blocks
==26412==    indirectly lost: 0 bytes in 0 blocks
==26412==      possibly lost: 0 bytes in 0 blocks
==26412==    still reachable: 68,634 bytes in 504 blocks
==26412==         suppressed: 0 bytes in 0 blocks
==26412== Rerun with --leak-check=full to see details of leaked memory
==26412== For counts of detected and suppressed errors, rerun with: -v
==26412== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)


SFML projects / Unnamed Project: Top-Down 2D Game
« on: March 01, 2016, 04:19:21 am »
Currently the game are under development, uses Box2D for physics and 'TMX Parser Lib' for read 'tmx' maps (yep.. I use tiled map editor).

The map can be virtually 'infinite' (clipping and using quadtree), in this video I only spawn 7 A.I Players.. can see that the 'clipping' method doesn't looks bad...
For 'cars' A.I Players.. i'm currently using an a bad "A+ Pathfinding" implementation :S (need be reworked)... with Manhattan heuristic.
The lighting system it's very simple but works pretty good :) only use a sprite for create the spot light and a 'RenderTexture' for generate the lightmap.
For tile map rendering i'm using textures with size power of two and vertex array.
The Particle system is the same that i made for 'FingerShip' game... but with possibility for define light particles.


** Sry for my bad english :\

General / Re: SFML + Emscripten ?
« on: November 18, 2015, 02:38:36 pm »
Can be pretty awesome support it :B

General / [Android] LoadFromFile (Not apk/internal asset)
« on: June 09, 2015, 06:32:53 am »
I see that Android ResourceStream implementation only works with Internal Assets... perhaps is best uses "FILE" against "Asset" and use "funopen" for get FILE handle... and try first to get a internal assets if it can't... try with 'normal' resource... or something like that :\

Or.. exists any method for load "external" assets??!?!!

*** In 2.3 i get a crash when try load a file that doesn't exists.
Code: [Select]
sf::Texture texture;
texture.loadFromFile("ssss");  <-- CRASH!

How i can help with Android branch?


General / Re: [Android] Keyboard issues
« on: June 08, 2015, 06:08:19 am »
With SFML 2.3 when shown the keyboard on a mobile with Android 5.1.1 it seems that not handle the input (tap)... as if it will not be drawn on front. If you try 'click' many times you can press a random key (or not.. the key that works one time don't work in all tries).

Pages: [1] 2 3 ... 5