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.

Topics - Tigre Pablito

Pages: [1] 2 3 4
General / "AccessViolationException" when my game ends, SFML.Net, C#
« on: October 06, 2020, 10:33:17 pm »
Hello Ladies and Guys from SFML

My "wonderful" game I'm currently working on (about Super Mario Bros. - much better than before ones) throws an AccessViolationException when I quit the application. I'm using SFML.Net, C#, on Windows 7 64 bit.

Could someone tell me what could be the causes of this, on what SFML is concerned? I think the cause must be an SFML object. The Debugger doesn't show me the part of the code that produces this Exception.  :(

I'll be posting the game in the projects forum when I finish designing levels ... and solve this issue.  :)

Thanks in advance
PS: Note I didn't use the word "poor".  ;)

General / How can I assign texture to 3D buildings made with VertexArrays?
« on: December 18, 2019, 07:48:43 pm »
Hello ladies and guys!

I would like that Quads (that are the 2D parts of my 3D buildings) have a texture, so the 3D buildings look a bit more like buildings ... I tried this but they just show the same old Color but darker

        private void AssignVertices(VertexArray array, Color color, float[] coords)
            int a;
            for (a = 0; a < coords.Length / 2; a++)
                array.Append(new Vertex(new Vector2f(coords[a * 2], coords[a * 2 + 1] + this.ship.Scroll), color, new Vector2f(0, 0)));
            array.Append(new Vertex(new Vector2f(coords[0], coords[1]), color, new Vector2f(0, 0)));
            RenderStates states = new RenderStates(Graphics.building);  // this is the Texture
            this.window.Draw(array, states);

Maybe those who remember my Massacre space shooter game will understand better ...

Thanks in advance

General / Why my SFML.Net 2.2 game makes Windows 10 restart?
« on: August 12, 2019, 09:39:04 pm »
Hi all

I'm trying to run my SFML.Net 2.2 game on Windows 10, but it makes system reboot.

What could be the causes? It doesn't seem to be the drivers. Neither the antivirus.


General / Wrong Screen ratio
« on: July 10, 2019, 10:51:50 pm »

When I run my SFML games on some PCs which have screens whose width is more than 4/3 of its height, they are displayed with wrong ratio. I always use 800x600.

Is there a solution for this?

Thank you

Graphics / RenderImage doesn´t exist anymore in SFML.Net 2.2?
« on: March 19, 2019, 09:13:57 pm »

I would like to be able to copy an Image onto another Image faster than with the Copy() function. A time ago I posted in the forum and I was told to use RenderTexture. I tried that, but without success. A few days ago I googled and found RenderImage class. But it seems it doesn´t  exist in SFML.Net 2.2 ... ? Why? Or am I wrong?

If RenderImage class is not available, could someone tell me the way to do this (if there is)?

Graphics / How to draw in an Image?
« on: July 26, 2018, 10:26:01 pm »

Would someone have a good way or function for drawing a RectangleShape in an Image?

And an Image in another Image?

Thank you

(C# if possible please)

General / My poor SFML games don't run on a specific PC
« on: July 16, 2018, 07:03:33 pm »
Hello, Ladies and Guys

The system is

Windows 7 Ultimate 64 bit Service Pack 1

AMD Athlon II X2 245 processor 2.90 Ghz  2.0 GB RAM

I'm using SFML.Net 2.2

When trying to run from the VC# IDE it crashes on every Draw() call ...

Thanks for any help

Hi Ladies and Guys

I would like to know if sometime the issue of setting window active or focussed and the one about Music loop points will be fixed/added to SFML.Net.

And, once again, I'll give an opinion: I don't think threats are the way for asking for something. Even less, that granting the requested thing is a way to respond a threat or a push. Clippboard support, as Laurent said from the beggining of that thread, has nothing to do with a multimedia library. But because of the push of some members, one of those that prompted others to switch to SDL, it seems that "feature request" has been started to develop/add to SFML. I wonder when the developer(s) and the SFML Team will stop fearing these kind of movements and characters, and just continue doing what they do the best (the multimedia library, SFML). I anyone wants to switch to SDL or whatever it was, then GO to SDL or where they want if they like it more. Nobody is forced to stay in SFML if he/she likes SDL more. But, as I saw, that member doesn't seem to think that SDL is better. I say this with no intention to offend anyone.

But why I say this? Because there are issues that really have to do with a multimedia library, such as the ones I mention here, that don't bring threats and are not too difficult to do. And, obviously, because I actually think that if someone(s) say(s): "Do this, or I will go to another place", I would reply "Go to another place". Other case would be if someone say "Would you please do this? (And thanks for what you have already done)".


DotNet / SFML.Net setting window active AND music loop points
« on: May 17, 2018, 03:31:59 am »
Hello Ladies and Guys

I would like to know if sometime, the issue about setting the window active (RenderWindow.SetActive() method), and the feature about (Music) Loop points, both of SFML.Net, will be addressed.


Dear Ladies and Guys of SFML

I tried to run my poor game on Windows 10 64 bit, and this error message showed up in the console box: "Failed to share OpenGL context". And below this, the famous "Attempt to read or write to the protected memory ...."

The game is created for 32 bit, and runs fine on Windows 7 (32 or 64 bit). I posted it on the SFML Projects forum.
Download link:

Can anyone help me to solve this issue?
Thanks in advance

Feature requests / Music Loop Points
« on: March 03, 2018, 10:26:18 pm »
Hello Ladies and Guys

Not so long time ago, I asked if there was a way to play a Music, but from the 2nd loop, to restart it from a certain offset from the beginning (that someone called it "Loop points"). And I remember that I was told that that would be coming with the next version of SFML (or something similar).

I would like to know it it already has been added or when it will be. (for SFML.Net)

I think (and repeat what I already said on that moment) that if the SFML Community members, try to ask for reasonable features (accordind to a multimedia library, that is what SFML is, not a file packer nor an object dropper container and so on ...) and we express ourselves with respect, not questioning Laurent (or whoever it is) by comparing SFML with SDL (like implying that SDL is better (that is NOT)), or saying something like "Laurent, you are hiding some bad code and want to keep it hidden" and that silly stuff (that I read on that moment and remember almost literal), then features that would be really important and really related to a multimedia library (and that are not so easy to develop oneself) would be added faster, and with that, we also might find more features (according) to ask for, and would have more facilities to develop our videogames and or multimedia stuff.


Hello Ladies and Guys of SFML Community

So this time I continued working on this poor game. Also, as I was advised before, I made gameplay videos, which are here. There are now 8 levels, visual effects have been improved, there are new ships, and better music (that make the .rar's size a bit greater).

Although the game works fine, I plan to continue working on it.

As always, I would appreciate criticism, advise for improving, or any feedback.

As you will guess, some graphics were made by me, and some others were not. Yeah, I am not an artist (feel free to beat me because of that!).




Game download link


General / RenderWindow.Display() crashing my poor game in an old PC
« on: February 21, 2018, 07:03:01 pm »
Hi Ladies and Guys of SFML

I'm trying to run my poor Space Shooter game in a PC from about 2003, written in C# with SFML.Net 2.0. The system is Windows XP. AMD 1.5GHz, 1,18 GB RAM  8)

A few days ago it ran fine. But I just added some improvements to the application, and it suddenly started to crash while debugging, with no error nor exception message, but always the highlighted line was window.Display();  :-\

I don't think that posting the code will help, because there is no essential changes from the before code.

May be an out of memory error?

I will thank any help  :D

General / SetPixel() method throws AccessViolationException (VS)
« on: December 02, 2017, 07:43:48 pm »
Hello Ladies and Guys

SetPixel() method from Image class throws an AccessViolationException in my poor Super Mario Game, and that had never happened before. I tried to think why it happens, and thought maybe it could be because the image which pixels are drawn to is inside a Texture that is currently in use in the game. But why now, if it had never happened before? The issue occurs when Mario hits a block and it remains out of items (coins, mushrooms, etc), that the program stops drawing the "animated" block and draws the empty hard block (draws on the level image that is in memory) and sets the level hardness attributes of all its pixels to SOLID. And this happens not at the first block, but at the 5th or 6th.

Any help will be appreciated


Audio / I need Music restarting on an specific offset from 2nd loop
« on: November 12, 2017, 06:10:40 pm »

Is there an easy way to restart a Music from a specific offset from the 2nd loop?

Pages: [1] 2 3 4