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 - WilliamK2H

Pages: [1]
1
SFML projects / 2D MMORPG with Battle Royale
« on: March 12, 2022, 09:01:39 pm »
The game uses SFML for the graphics so hoping this post is alright  :) The game is developed in VB.NET.

A new update will be released on 2022-03-18 that introduces Battle Royale amongst a lot of other things to the 2D MMORPG Key To Heaven. You can follow the countdown on the website: https://www.key2heaven.com/

There is also a 50% exp increase for new players when the update hits!




In K2H, your goal is to fight and explore on the mysterious islands. Become stronger, equip better items, craft a raft and sail parts of the oceans to find more hidden treasure, secrets, and bosses.

The game can be downloaded on Steam: https://store.steampowered.com/app/1347630/Key_To_Heaven/




Discord: https://discord.gg/TmHHJkG

2
SFML projects / Key To Heaven, a new upcoming 2D MMORPG!
« on: December 10, 2020, 02:26:34 pm »
Key To Heaven is my life's work, currently available on Steam as a Demo and will hopefully see a final release around Jan/Feb 2021! You can checkout and wishlist the game on Steam or join our discord for the latest updates.
  • 2D MMORPG for PC!
    1 Developer for a span of 15 years!
    Developed in .NET using SFML for Graphics.
    Craft! Sail! Gather! Upgrade! PVE/PVP!
Steam: https://store.steampowered.com/app/1347630/Key_To_Heaven/
Discord: https://discord.gg/TmHHJkG

Official Trailer:




Origin Trailer:

3
SFML projects / Key To Heaven 2D MMORPG
« on: July 29, 2020, 11:40:55 am »
Key To Heaven is a 2D MMORPG. I posted this project some months ago but want to share it again cause it has received a lot of love sence then :) This year it has received new graphics and is now a month or two away from the Steam release.

I have now made a Introduction/Origin Trailer for the game:


What do you think?

Discord: https://discord.gg/TmHHJkG
Sign up for Steam Launch: https://mailchi.mp/9add8f4ad526/keytoheaven
Website: www.key2heaven.com





Some things that you can do in the game.
* Craft! Make better items and explore the possibilities.
* Sail! Craft a raft to explore the oceans.
* Multiplayer! With guilds, parties, groups, and PvP starting on level 3.
* Gather! You can mine, fish, farm, cut trees, and cook.
* Upgrade! Visit the blacksmith to improve your items.
* Stats & Skills! Distribute points to boost your character in ways that you think are good.
* Quest! A wide range of different quests and they are all optional! With some unique paths that are extremely difficult to solve.
* Seraph! Reach the required level and progression and Seraph back to Level 1. This time you have an aura and more stat/skill points. (Max 2 times).
* Caves! Craft torches and explore the deep dark caves for treasure.

4
Graphics / Re: Failed to load texture from memory
« on: January 25, 2020, 10:51:12 pm »
It seems integrated hd 3000 do not support images larger than 4096x4096px. And I'm pretty sure that is the issue.

5
Graphics / Failed to load texture from memory
« on: January 25, 2020, 12:04:18 am »
I'm using sfmlnet-graphics-2 version 2.2.0.0.

A player of my game is running with specs:
Quote
i3 2350m with intel hd 3000 integrated 6gb ram

He is successfull in loading the first image file that is 7mb but fails on all others (ranging from 1mb to 26mb). He gets the following error:
 SFML.LoadingFailedException: Failed to load texture from memory
   at SFML.Graphics.Texture..ctor(Image image, IntRect area)
   at SFML.Graphics.Texture..ctor(Image image)
   at K2HGame.SFML_Utils.TextureFromDecryptedFile(Byte[] buffer)
   at K2HGame.modDirectX.InitSurfaces()

And the code for TextureFromDecryptedFile is:
    Public Shared Function TextureFromDecryptedFile(buffer As Byte()) As Graphics.Texture
        Dim image As Graphics.Image
        image = New Graphics.Image(New IO.MemoryStream(buffer))
        image.CreateMaskFromColor(New Graphics.Color(0, 0, 0)) 'Setting alpha to 0 for all pixels with 0,0,0 rgb
        Return New Graphics.Texture(image)
    End Function

So what I'm looking for is what could be the cause of this issue. Could it be my coding that is bad? I do encrypt all graphics files, and use this to decrypt them:
(click to show/hide)

So what I do is basically decrypt the image file and then load it into the texture:
m_Paperdoll = SFML_Utils.TextureFromDecryptedFile(DecryptGfx.DecryptFile(filename & "paperoll.encrypt", bytKey, bytIV))

Any and all ideas are appreciated.

6
SFML projects / Re: Key To Heaven - 2D MMORPG
« on: January 17, 2020, 03:12:39 pm »
Thanks, yeah it was started in VB6 so that should say something xD But last year I ported it to .net and thats when I also decided to go for SFML and so far I really like it.

Now I just need to build a community so that there will be a player base for it when I release it on Steam.

7
SFML projects / Key To Heaven - 2D MMORPG
« on: January 15, 2020, 12:28:41 pm »
I'm an indie game developer from Sweden and way back in 2005 I started a 2d mmorpg. Although I have taken many breaks during this time, it is now very close to finished. All the graphics ni the game is handled with SFML <3 The game is programmed in VB.NET. Beta testing is now OPEN and you can download it in the discord channel. So if you want to provide suggestions and features you like, now is your chance to get them implemented. Or you can just join if you want to try an old school type game before it gets on Steam.

Discord: https://discord.gg/TmHHJkG

You can view the trailer video here:

Main Features:
* PvP, PvE.
* Crafting, Smithing, Upgrading/dye items.
* Questing, Lore, Survival.
* Optional Hardcore mode.
* No class requirements, make a unique character.

Screenshots:






8
DotNet / AccessViolationException on Draw
« on: September 30, 2019, 10:07:50 pm »
A person got this error, seems to be very rare and I cant really figure out why it appeared.

Quote
Application: K2HGame.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at SFML.Graphics.Text.sfRenderTexture_drawText(IntPtr, IntPtr, MarshalData ByRef)
   at SFML.Graphics.Text.Draw(SFML.Graphics.RenderTarget, SFML.Graphics.RenderStates)
   at SFML.Graphics.RenderTexture.Draw(SFML.Graphics.Drawable)
   at K2HGame.SFML_Utils+RenderSurface.Draw(SFML.Graphics.Drawable ByRef)
   at K2HGame.SFML_Utils.DrawText(RenderSurface, System.String, Int32, Int32, Int32 ByRef, UInt32)
   at K2HGame.modText.DrawText(Int32, System.Object, System.Object, System.String, Int32 ByRef, UInt32)
   at K2HGame.modPlayer.BltPlayerName(Int32)
   at K2HGame.GameLoop.Start()
   at K2HGame.DataHandlerPlayer+_Closure$28-0._Lambda$0()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Code that it occured in:
 
   Public Shared Sub DrawText(surface As RenderSurface, text As String, x As Integer, y As Integer, ByRef color As Integer, Optional fontSize As UInteger = 13)
        Try
            If surface.Font Is Nothing Then
                Return
            End If
            Dim output As New SFML.Graphics.Text(text, surface.Font, fontSize)
            'Dim red As Byte = color >> 16 And 255
            'Dim green As Byte = color >> 8 And 255
            'Dim blue As Byte = color And 255

            Dim convColor = ColorTranslator.FromOle(color)
            'Outline
            output.Color = New SFML.Graphics.Color(0, 0, 0)
            output.Position = New SFML.System.Vector2f(x + 1, y)
            surface.Draw(output)
            output.Position = New SFML.System.Vector2f(x, y + 1)
            surface.Draw(output)
            output.Position = New SFML.System.Vector2f(x - 1, y)
            surface.Draw(output)
            output.Position = New SFML.System.Vector2f(x, y - 1)
            surface.Draw(output)
            'Text
            output.Position = New SFML.System.Vector2f(x, y)
            output.Color = New SFML.Graphics.Color(convColor.R, convColor.G, convColor.B)
            surface.Draw(output)

            output.Dispose()
        Catch ex As Exception
            MainHandler.LogException("DrawText", ex)
        End Try
    End Sub

        Public Sub Clear()
            Try
                renderTexture.Clear(backGroundColor)
            Catch ex As Exception
                MainHandler.LogException("Clear", ex)
            End Try
        End Sub

        Public Sub Draw(ByRef drawable As Graphics.Drawable)
            Try
                If Not isRendering Then
                    Clear()
                    isRendering = True
                End If
                renderTexture.Draw(drawable)
            Catch ex As Exception
                MainHandler.LogException("Draw", ex)
            End Try
        End Sub
 

Any ideas are appreciated!

Pages: [1]
anything