BASIC

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

Pages: [1] 2
1
Another really cool thing related to svn cvs is to exclude some files when copying to distribute/

There is a hidden ".svn" folder in every directory that is under version control (At least with tortoise svn, not sure for other svn tools). These folders cause trouble.

First of all they can become quite big (it contains the last cached versions of the local files).
It should not be in the final package thats distributed to the user and also it doesnt work for my iphone apps.

So what i am doing right now is to run a batch file after compiling, deleting all .svn folders for now. It would help if that would work automatically for the generated directory.

2
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-13 »
hm ya, strange thing is that saving and loading worked before, can i set any writing/reading permissions in my xcode project?

saving and loading is really not working anymore, i tried it changing and saving settings


do i have to convert the mp3 for the new xcode? dou suggest a specific format?









3
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-10 »
i ve update to the newest beta version now   10.013
still the same error


here is the full log
Code: GLBasic [Select]
[GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
target remote-mobile /tmp/.XcodeGDBRemote-5454-24
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 11523 thread 0x0]
[Switching to process 11523 thread 0x0]
`/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
`/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
sharedlibrary apply-load-rules all
`/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
`/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
2000-03-13 22:22:34.-104 iRace3D[809:307] *** __NSAutoreleaseNoPool(): Object 0x3eb98aa8 of class NSCFString autoreleased with no pool in place - just leaking
`/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
init with frame.
Scaleing available: self.contentScaleFactor = 1.000000
desktop backing: 320 x 480
mainScreen: 320x480
-applicationDidBecomeActive    -> unpause
BGRA ext supported
init fbo
2D VP
OGRB init [OK]
Cptn
Network
Input
Window mode
Create DXin
reptr
getexe
cd
set cdir to: /var/mobile/Applications/093A74C7-A098-4793-B009-ED53EEBC3638/iRace3D.app
exepath=curdir= /var/mobile/Applications/093A74C7-A098-4793-B009-ED53EEBC3638/iRace3D.app
AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved
Init Finalized
set cdir to: Media
request: fopen("/var/mobile/Applications/093A74C7-A098-4793-B009-ED53EEBC3638/Documents/irace3d/user.ini", "rb") failed
wrt-request: fopen("", "wb") failed

can't write to file: 
Loading Music: menu.mp3
[Switching to process 13059 thread 0x0]
Status: 0
code]
 

4
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-10 »
i am using the current beta,

but mylast submitted version that didnt work was builded with the official version of glbasic.


*update*

ah there is already a 10.x beta, i am not sure which version i have, i will have a look this evening

5
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-09 »
yes compression is on,

 i will turn it off and release a new version. hopefully it works then



i just noticed:


request: fopen("/var/mobile/Applications/093A74C7-A098-4793-B009-ED53EEBC3638/Documents/irace3d/user.ini", "rb") failed
wrt-request: fopen("", "wb") failed
can't write to file: 




i cant save files anymore:

Code: GLBasic [Select]
        LOCAL dir$ = PLATFORMINFO$("Documents") + "/" + "irace3d/"
        LOCAL userfilename$ = dir$ + "user.ini"

        IF NOT DOESDIREXIST(dir$)
                CREATEDIR(dir$)
        ELSE
                KILLFILE userfilename$
        ENDIF

        INIOPEN userfilename$
        INIPUT "general","muted",settingsmuted
        INIOPEN "settings.ini"

 


maybe there is another problem?

6
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-07 »
png compression? you mean when i exported my pics in a program like photoshop?

i didnt change my xcode project.

7
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-07 »
itunes tells me that there are not enough crash reports :(

when i try it at home using xcode everything works fine so i cant reproduce the crash

trucidare tried the xcode project which worked ( i gave him the full xcode project )

when he downloaded the update using itunes it crashed (on his ipod if i remember correctly)

he said that it looked like no graphics could be loaded or something like that: i am writing "loading" while the app is starting using PRINT with my custom font image. he said that loading was written very small and then the app stopped working ( maybe due to the music that starts after loading? )

once i had a similar behaviour on my iphone using xcode 4: in the very first seconds the font is printed very small (so it is the standard because the graphics are not found, i guess), then the graphics seem to be loaded and everything including background is rendering correctly. no crash here.


8
GLBasic - en / Re: APPLE App Rejected :-(
« on: 2011-Jun-06 »
oh no i also got this problem now

a customer told me that irace3d is not working on his device so i recreated it, this time not using the beta of glbasic anymore but the lates normal version

the app got accepted but is still crashing on some devices (also on trucidares)

its strange that it works with xcode but not on final devices

any solution beside of the unity flag -all_load yet? i didnt submit it using that flag yet? its working with and without that flag on my devices.

does it help?


9
Code Snippets / Dictionary / Hashmap
« on: 2011-May-15 »
Hallo zusammen,

da ich auf die schnelle kein Dictionary in glbasic gefunden habe, hier ein einfaches Dictionary bzw. eine Hashmap  für Strings. 
Damit kann man sich zu einem String Schlüssel einen String Wert halten/holen

Z.B.

dic as Dictionary
dic.set("kuh","muh")

speichert für den wert "kuh" den wert "muh"


Hinterher kann man sich diesen wieder holen mit

dic.get$("kuh")

wenn man "kuh" nochmals setzen würde würde der wert einfach überschrieben werden.

dic.get liefert 0 wenn der wert nicht gefunden wurde
dic.clear löscht alle elemente
dic.count gibt die anzahl wieder



Code: GLBasic [Select]
// --------------------------------- //
// Project: feuerware
// Start: Sunday, May 15, 2011
// IDE Version: 9.089

//GLOBAL dic AS Dictionary

//dic.set("a","b")
//dic.set("a","c")
//dic.set("d","edd")

//DEBUG dic.get$("a")
//DEBUG dic.get$("d")
//DEBUG dic.size()



//hashmap:  "a" => "b"
TYPE Dictionary

        keys$[]
        values$[]
       
        //adds or replace a key value pair
        FUNCTION set: key$,value$
               
                FOR i=0 TO LEN(self.keys$)-1
                        IF self.keys$[i] = key$
                                self.values$[i] = value$
                                RETURN
                        ENDIF
                NEXT
                       
                //not found, redim
                REDIM self.keys$[LEN(self.keys$)+1]
                REDIM self.values$[LEN(self.values$)+1]
                self.keys$[LEN(self.keys$)-1] = key$
                self.values$[LEN(self.values$)-1] = value$

        ENDFUNCTION
       
       
        // returns 0 if doesnt exist
        FUNCTION get$: key$
                FOR i=0 TO LEN(self.keys$)-1
                        IF self.keys$[i] = key$
                                RETURN self.values$[i]
                        ENDIF
                NEXT
                RETURN 0
        ENDFUNCTION
       
       
        //how many key values are there?
        FUNCTION size:
                RETURN LEN(self.keys$)
        ENDFUNCTION
       
        //clears all items
        FUNCTION clear:
                REDIM self.keys$[0]
                REDIM self.values$[0]
        ENDFUNCTION

        FUNCTION remove%: key$
                FOR i=0 TO LEN(self.keys$)-1
                        IF self.keys$[i] = key$
                                DIMDEL self.keys$[],i
                                DIMDEL self.values$[],i
                                RETURN i
                        ENDIF
                NEXT
                RETURN -1              
        ENDFUNCTION
       
ENDTYPE

10
GLBasic - en / Re: AppStore Thread
« on: 2011-Apr-29 »
App name: iRace3D
Developer: feuerware
Games, Racing/Arcade
$1.99  ===>   1$ EARLY BIRD SPECIAL
*****************************************************************
Free phase is over, it costs 1$ now

Here are some promo codes for the glbasic community. Thanks for your support !!

PEM7K3JRJ764
EERY34H9W73T
RF9REKNPN7AA
F7RRKTA9XJKN
9L6RYYJEA4AA
MA73YMAK7X74
FFHPF3NKEAMF
LJL3EXLEWXMT
ARRX3HRMT9R4
A9WN6AYMWTPP






Never had the chance to drive on the autobahn like a bat out of hell? Now you can with iRace3D.

The fastest racing experience on the iPhone is finally available, offering awesome features like NITRO and SLOW-MOTION mode.
Developed by crazy German speed fanatics, iRace3D will push your reflexes to the limit.

This OpenGL 3D racing game offers touch and tilt based accelerometer controls in a classic arcade-style racing game.
Your goal is simple; go as fast and far as possible on the highway until the time runs out.

he farther you drive within the time limit, the higher your score will be.
Occasionally you will pass points that will give you an additional 10 seconds time bonus.
Collect items to boost up your energy bar in order to activate the turbo and slow-motion mode.
The aerodynamics of tailgating will also ramp up your speed, so stay close to the driver in front of you, but be careful not to crash or your speed will drop significantly.

Please give us your feedback so we know how to improve the game: like online high scores, more game modes, and more cars, you name it.
We truly value your input and hope that our game makes your heart race.

Now fasten your seatbelt, grip the wheel and put the pedal to the metal.

<a href="http://www.youtube.com/watch?v=Pdia4C-aUj8" target="_blank">http://www.youtube.com/watch?v=Pdia4C-aUj8</a>


Game Page:
http://www.feuerware.com/newpage/pages/posts/irace3d-18.php

iTunes Direct Link:
http://itunes.apple.com/app/irace3d/id433511529?mt=8#





11
Bug Reports / Re: IPhone MouseState Problem
« on: 2011-Mar-16 »
Hm ok, beim Palm Pre teste ich Mal heute Abend.
Seltsamerweise ist das ja auch nur bei einer einzigen Seite vom Handy.

Oder kann es noch sein, dass irgendetwas bei Fokusverlust passiert. Also wenn gar kein Finger mehr drauf ist?

Ansonsten: gibt es vlt eine Möglichkeit statt OrientationRight/Left  beim Iphone die jeweils andere Orientierung zu nehmen? Finde ich zwar nicht so schön aber wenn nix hilft.

Dann hätte ich das Steuerkreuz (bei dem der Finger ja die ganze Zeit gedrückt ist und bewegt wird)auf der anderen Seite. Auf der anderen Seite gibt es keine Problem wenn der Finger übern Rand geht.

Hatte auch schon zeitweise mal das Steuerkreuz auf der rechten Seite, dass man dann mit der rechten Hand lenkt, aber das war vom Feeling gar nicht gut.


12
Bug Reports / Re: IPhone MouseState Problem
« on: 2011-Mar-15 »
aaaah

mir fällt gerade auf


das problem tritt dann auf, wenn man über den rand geht und nur EINEN finger benutzt

wenn ich einen oder mehrere andere finger in der zeit drauf habe, dann geht es ohne probleme. wird da irgendwas unterschiedlich gehandlet?

13
Bug Reports / Re: IPhone MouseState Problem
« on: 2011-Mar-15 »
Klar, das geht bei vielen normalen Iphone Spielen :-)


Puppet Wars z.B. hat links so ein Steuerkreuz, da ists kein Problem wenn man mit dem Finger zu weit raus geht. Das Steuerkreuz springt einfach auf Null Position sobald man aus dem gültigen Touch Bereichs des Iphones ist und damit keine Eingaben mehr kommen. Bewegt man dann den Daumen zurück ohne abzusetzen  klappt es wieder sobald der Finger im gültigen Bereich ist.


Die Maus ist bei GLbasic nicht mehr gedrückt, sobald man aus dem gültigen Bereich ist. Das ist ja soweit auch in Ordnung.

Kommt man wieder zurück, ists leider immer noch nicht gedrückt. Der kriegt dann solange keine gültigen Werte, bis man über einen der 3 anderen Ränder drüber geht, dann geht es auf einmal wieder.

14
Bug Reports / Re: IPhone MouseState Problem
« on: 2011-Mar-12 »
Hm ne das hilft leider nicht, der Finger geht ja trotzdem übern Rand :-)

15
Bug Reports / Re: IPhone MouseState Problem
« on: 2011-Mar-11 »
Hi,

danke für den wohlgemeinten Tipp. Aber auch mit dem Programm klappt es nicht. Sobald ich über den Rand hinausgehe und zurückgehe wird da nichts mehr angezeigt.


Ich hab die Probleme sowohl im Multi als auch im Single Touch ohne SetActiveMouse.

Bei meinem Spiel handelt es sich um ein kleines Rennspiel, das bisher über die Orientierung des Handys gesteuert wurde. Alternativ zur Orientierung kann man es per Touchscreen spielen.

Links lenken, rechts Turbo etc.





Wenn jetzt der Spieler zu weit mit dem Daumen links landet ( was häufig vorkommt), dann kann er plötzlich nicht mehr lenken, weil keine Mousekoordinaten mehr funktionieren.

Pages: [1] 2