The actual error seems to depend on other stuff around it or somesuch because the shortened code I posted above seems to break at other places than my main program.
In the example, if activating zip, examine and listing files does work, only unpacking fails.
If I activate blz, I can examine, but it ...
Search found 22 matches
- Thu Jan 28, 2016 10:57 am
- Forum: Coding Questions
- Topic: Packer not working under x86 PB 4x - 5.4
- Replies: 4
- Views: 3499
- Sun Jan 24, 2016 7:52 am
- Forum: Coding Questions
- Topic: Packer not working under x86 PB 4x - 5.4
- Replies: 4
- Views: 3499
Re: Packer not working under x86 PB 4x - 5.4
I put up test code together with sample pack files.
http://www.heydernet.de/edler/packtest.tar.bz2
It's a bit long as I patched it together from our game code. Still it should help to show the bug appear at least.
http://www.heydernet.de/edler/packtest.tar.bz2
It's a bit long as I patched it together from our game code. Still it should help to show the bug appear at least.
- Thu Dec 03, 2015 11:49 pm
- Forum: Coding Questions
- Topic: Packer not working under x86 PB 4x - 5.4
- Replies: 4
- Views: 3499
Packer not working under x86 PB 4x - 5.4
I have some graphic resources in a pack file.
Opening the same zip file under x64 works just fine, but under x86 I get a 0 back from ExaminePack().
If OpenPack(PackFileID, "graphics.zip")
If ExaminePack(PackFileID)
If I use blz instead, I can run examine and also UncompressPackMemory().
But ...
Opening the same zip file under x64 works just fine, but under x86 I get a 0 back from ExaminePack().
If OpenPack(PackFileID, "graphics.zip")
If ExaminePack(PackFileID)
If I use blz instead, I can run examine and also UncompressPackMemory().
But ...
- Tue Jun 30, 2015 9:20 pm
- Forum: Game Programming
- Topic: Pure BASIC Game
- Replies: 16
- Views: 11132
Re: Pure BASIC Game
You might be trying to play ogg music with PlayMusic()... this will only play mod files.
You need to use LoadSound() and PlaySound() for ogg files.
You need to use LoadSound() and PlaySound() for ogg files.
- Mon May 05, 2014 1:25 pm
- Forum: Feature Requests and Wishlists
- Topic: IDE: paste with mouse targeting
- Replies: 6
- Views: 2867
Re: IDE: paste with mouse targeting
I want to - and I am pasting from other applications like text terminals and web browsers.
And it does all work already... the selected text area is exported to the X window system automatically by every application I can think of.
So one can select in one window and then switch to some other and ...
And it does all work already... the selected text area is exported to the X window system automatically by every application I can think of.
So one can select in one window and then switch to some other and ...
- Sun May 04, 2014 9:41 pm
- Forum: Feature Requests and Wishlists
- Topic: IDE: paste with mouse targeting
- Replies: 6
- Views: 2867
Re: IDE: paste with mouse targeting
It doesn't work like this.
The paste via middle mouse button is default behaviour under X-windows since forever.
It is not a result of mapping things to mouse buttons.
Under X, usually all applications where one might paste something, you can do that with middle click.
For example Firefox text input ...
The paste via middle mouse button is default behaviour under X-windows since forever.
It is not a result of mapping things to mouse buttons.
Under X, usually all applications where one might paste something, you can do that with middle click.
For example Firefox text input ...
- Sat May 03, 2014 6:41 pm
- Forum: Feature Requests and Wishlists
- Topic: IDE: paste with mouse targeting
- Replies: 6
- Views: 2867
IDE: paste with mouse targeting
Hello, I might be the only person in the world who wants this,
but I really would like to have the editor insert the text pasted by middle mouse button
at the text cursor position instead of where the mouse cursor is.
Ideally, this behaviour would be adjustable in the preferences.
This is a Linux ...
but I really would like to have the editor insert the text pasted by middle mouse button
at the text cursor position instead of where the mouse cursor is.
Ideally, this behaviour would be adjustable in the preferences.
This is a Linux ...
- Thu Apr 10, 2014 8:14 pm
- Forum: Coding Questions
- Topic: IMA on SpriteQuality()
- Replies: 6
- Views: 1373
IMA on SpriteQuality()
One of our users reported this crash:
Error message: Invalid memory access
Error location: procs_graphics.pbi (line 69)
this line is:
SpriteQuality(#PB_Sprite_BilinearFiltering)
System info:
Microsoft Windows XP Professional (5.1, Build 2600)
Compaq Deskpro EP/SB Series
Intel Pentium II, MMX ...
Error message: Invalid memory access
Error location: procs_graphics.pbi (line 69)
this line is:
SpriteQuality(#PB_Sprite_BilinearFiltering)
System info:
Microsoft Windows XP Professional (5.1, Build 2600)
Compaq Deskpro EP/SB Series
Intel Pentium II, MMX ...
- Tue Mar 12, 2013 7:54 pm
- Forum: Coding Questions
- Topic: Mouse Issues
- Replies: 13
- Views: 4256
Re: Mouse Issues
We got similar problem reported from windows users.
For us it happened when the mice have a too high sample rate (resolution was not the issue).
Our game was reading input 100 times per second, which is more than fast enough for human input.....
BUT high sample rate mice will cause some overflow ...
For us it happened when the mice have a too high sample rate (resolution was not the issue).
Our game was reading input 100 times per second, which is more than fast enough for human input.....
BUT high sample rate mice will cause some overflow ...
- Thu Nov 22, 2012 12:34 am
- Forum: Windows
- Topic: PB 5.0 & XP 32 DrawText
- Replies: 6
- Views: 2362
Re: PB 5.0 & XP 32 DrawText
Thanks for the info. Scaling might be most easy to do as I had to make the game write everything onto sprites anyway for PB4.x Windows.
Though I might instead scale all other things up and use a bigger screen anyway.
Old pixel gfx won't improve with a simple scale, but text will be a lot better.
Though I might instead scale all other things up and use a bigger screen anyway.
Old pixel gfx won't improve with a simple scale, but text will be a lot better.
- Wed Nov 21, 2012 6:36 am
- Forum: Windows
- Topic: PB 5.0 & XP 32 DrawText
- Replies: 6
- Views: 2362
Re: PB 5.0 & XP 32 DrawText
Try with smaller font:
EnableExplicit
Enumeration
#Window
#Text
#Font
#Sprite
EndEnumeration
Define.s fileFilter, spriteFileName, wFlags.i
LoadFont(#Font, "Arial", 10)
wFlags = #PB_Window_SystemMenu | #PB_Window_ScreenCentered
If InitSprite() And OpenWindow(#Window, 0, 0, 300, 300, "Fonts ...
EnableExplicit
Enumeration
#Window
#Text
#Font
#Sprite
EndEnumeration
Define.s fileFilter, spriteFileName, wFlags.i
LoadFont(#Font, "Arial", 10)
wFlags = #PB_Window_SystemMenu | #PB_Window_ScreenCentered
If InitSprite() And OpenWindow(#Window, 0, 0, 300, 300, "Fonts ...
- Tue Nov 20, 2012 11:17 am
- Forum: Windows
- Topic: PB 5.0 & XP 32 DrawText
- Replies: 6
- Views: 2362
PB 5.0 & XP 32 DrawText
I can't find a way to make PB draw smooth = anti-aliased text.
At least not using the sprite & screen stuff. (Did not test gadgets)
SmallFont = LoadFont(#PB_Any, "Microsoft YaHei", 10, #PB_Font_HighQuality)
I can make it use different fonts/sizes, but they all look ugly under Windows.
Under ...
At least not using the sprite & screen stuff. (Did not test gadgets)
SmallFont = LoadFont(#PB_Any, "Microsoft YaHei", 10, #PB_Font_HighQuality)
I can make it use different fonts/sizes, but they all look ugly under Windows.
Under ...
- Tue Nov 20, 2012 10:51 am
- Forum: Coding Questions
- Topic: Gadgets + Screen
- Replies: 5
- Views: 2124
Re: Gadgets + Screen
If i create a windowed program and need mouse-coordinates,
i would use WindowMouseX/Y()
Yea, well except that you won't get mouse buttons this way. This only works under Linux, though there you can't access the mouse wheel UNLESS you use gadgets..
But you can't use gadgets if you want to use ...
i would use WindowMouseX/Y()
Yea, well except that you won't get mouse buttons this way. This only works under Linux, though there you can't access the mouse wheel UNLESS you use gadgets..
But you can't use gadgets if you want to use ...
- Tue Oct 30, 2012 8:35 pm
- Forum: Coding Questions
- Topic: Gadgets + Screen
- Replies: 5
- Views: 2124
Re: Gadgets + Screen
Maybe works under windows. I doubt it though.
Try calling ExamineMouse() inside the gadget event loop for example.
Afaik that will teleport the mouse pointer under windows just the same as it does under Linux.
;
; ------------------------------------------------------------
;
; PureBasic - Gadget ...
Try calling ExamineMouse() inside the gadget event loop for example.
Afaik that will teleport the mouse pointer under windows just the same as it does under Linux.
;
; ------------------------------------------------------------
;
; PureBasic - Gadget ...
- Tue Oct 30, 2012 4:30 pm
- Forum: Coding Questions
- Topic: Gadgets + Screen
- Replies: 5
- Views: 2124
Gadgets + Screen
One can not use any sprite,sprite3d,mouse,keyboard command together with gadgets.
It's kinda obvious for experienced programmers, but I still think the documentation should mention it in the overview pages for "gadgets" and "sprite and screen".
It's kinda obvious for experienced programmers, but I still think the documentation should mention it in the overview pages for "gadgets" and "sprite and screen".