Search found 1219 matches

by Thorium
Mon Jan 29, 2024 7:33 pm
Forum: Bugs - Windows
Topic: [Done] PB 6.04 #PB_HTTP_Aborted never happens on asynchronous ReceiveHTTPFile
Replies: 1
Views: 294

[Done] PB 6.04 #PB_HTTP_Aborted never happens on asynchronous ReceiveHTTPFile

Following code will run endlessly because #PB_HTTP_Aborted is never returned: EnableExplicit Global Con.i Global ProgressBytes.i Con = ReceiveHTTPFile("https://www.google.com/", GetTemporaryDirectory() + "PBTest.tst", #PB_HTTP_Asynchronous) If (Con = #False) Debug "connectio...
by Thorium
Sun Oct 30, 2022 5:16 pm
Forum: Applications - Feedback and Discussion
Topic: CatBit NFT Generator
Replies: 1
Views: 559

CatBit NFT Generator

Hey, quite some time since i released anything made with PureBasic. So happy to share this with you. It is a NFT generator, which will take source images of layers and draws them on top of each other to generate a collection of NFT images. Thats the basic idea. There are some nuances to this of cour...
by Thorium
Sun Oct 23, 2022 5:40 am
Forum: Coding Questions
Topic: [Bug][PB6.00 LTS x64] ElapsedMilliseconds always returns 0
Replies: 5
Views: 440

[Bug][PB6.00 LTS x64] ElapsedMilliseconds always returns 0

Code: Select all

Debug ElapsedMilliseconds()
Always 0.

// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
by Thorium
Thu Jun 10, 2021 11:13 am
Forum: Feature Requests and Wishlists
Topic: Update 3D libraries
Replies: 27
Views: 8954

Re: Update 3D libraries

I hadn't heard of 'Unreal Engine as a Library', sounds interesting but perhaps a little young still. Yeah, it's not production ready yet, but may be an option to switch to in the future. They just released it's first iteration with UE4.27 Preview: "UE-As-Lib. With UE-As-Lib, you can build the ...
by Thorium
Wed Jun 02, 2021 9:56 am
Forum: Game Programming
Topic: how can i generate 2d object with particles ?
Replies: 6
Views: 5459

Re: how can i generate 2d object with particles ?

i am studying PB 2D engine ( Game ), and an intriguing question arose, can I do something similar to this in PB with the 2d support library? The project in question was done on the 2D engine called Unity Engine https://xform.artstation.com/projects/gJZbOP and consists of "generating" side...
by Thorium
Wed Jun 02, 2021 9:46 am
Forum: Game Programming
Topic: WeightedRandom - OOP
Replies: 10
Views: 6581

Re: WeightedRandom - OOP

Looks a bit complecated.
There is a fairly simple approach to weighted random numbers. Take a look here: https://stackoverflow.com/questions/176 ... om-numbers

Maybe your binary tree is faster with big data sets, but probably to much overhead for small data sets.
by Thorium
Wed Jun 02, 2021 9:31 am
Forum: Feature Requests and Wishlists
Topic: Update 3D libraries
Replies: 27
Views: 8954

Re: Update 3D libraries

Talking about the 3D engine. It's really outdated. Falling back to OpenGL may also not a good path forward. To my knowlege OpenGL has been widly deprecated in favor of Vulkan. So, if DX is dropped, the logical move would be to Vulkan. You may lose compatibility to extremly old hardware but it's bett...
by Thorium
Tue Mar 30, 2021 10:16 am
Forum: Off Topic
Topic: A Decade of PureBasic!
Replies: 21
Views: 7005

Re: A Decade of PureBasic!

I also showed up late to the party, join date was 2009, but my join date on the german forums was 2005 and i got PureBasic a few years befor that.
I remember i bought the boxed version 3.xx. And i didnt had internet at the time and didnt spoke a word english. :D
by Thorium
Mon Mar 29, 2021 10:43 pm
Forum: Announcement
Topic: Blog post !
Replies: 325
Views: 92106

Re: Blog post !

BarryG wrote:
Saki wrote:First of all, it has to run stably.
Although, I wonder if the number of virus false-positives may suddenly reduce/disappear due to the new code base?
No. C compiled programs just have the same problem with AV's.
by Thorium
Tue Mar 23, 2021 3:53 pm
Forum: Assembly and C Programming in PureBasic
Topic: AVX-512 Instruction
Replies: 8
Views: 8448

Re: AVX-512 Instruction

It's fairly simple to update FASM to get the new instructions.
You can just replace FASM.exe in the compilers directory.
by Thorium
Tue Mar 23, 2021 3:17 pm
Forum: Announcement
Topic: Blog post !
Replies: 325
Views: 92106

Re: Blog post !

I think it's a very good decision you made. Never understood why compile speeds are so important to PB users. And CPU's are so fast today, we are probably talking about seconds for the majority of PB projects, not even minutes for compiling with C backend and optimization on. For code optimization, ...
by Thorium
Thu Dec 10, 2020 1:52 pm
Forum: Coding Questions
Topic: Crafting an interpreter in PureBasic
Replies: 45
Views: 7499

Re: Crafting an interpreter in PureBasic

Most just want a convenient way to structure data and its behaviour. Thats the biggest flaw of OOP. Data and code should not belong together. It may be easier for a human to think about an object which encapsulated the code and data it operates on. But it's fundamentally not how the computer works....
by Thorium
Wed Dec 09, 2020 3:41 pm
Forum: Coding Questions
Topic: Crafting an interpreter in PureBasic
Replies: 45
Views: 7499

Re: Crafting an interpreter in PureBasic

* no support for OOP. Not con for me. Actually one of the few reasons PureBasic is still relevant to me. Since i am working on a fairly big game project in UE4 and C++ for the last few years, i can really say: OOP introduces more problems than it solves. I spend so much time thinking how to structu...
by Thorium
Fri Dec 04, 2020 9:00 pm
Forum: Off Topic
Topic: What are you working on?
Replies: 57
Views: 37154

Re: What are you working on?

For the past few years i am learning C++, Unreal Engine and started a game project i am working on with a few other people. Most of the project is made by 2 guys, me and another one. However, we also have a lot of contributors, contributing small things, like 3D assets, sounds, etc. Well sometimes e...
by Thorium
Mon Nov 30, 2020 4:50 pm
Forum: Coding Questions
Topic: Server/Client limitation
Replies: 6
Views: 1002

Re: Server/Client limitation

Each IP address can handle 65,535 ports. By convention the first 1024 ports are reserved (but they can still be used). The operating system takes care of assigning a free port for each client at connection. Remember to close each connection after use to free the port. It is possible that PB also ha...