Game Development Community

OnTouch problem

by Hilbert Reijngoudt · in iTorque 2D · 09/18/2011 (12:54 pm) · 8 replies

I got a problem with OnTouch events.
I want to develop my games on a windows machine, i put the engine and my new probject on my CVS server. Now if i check the whole thing out on my imac and build my project everything works fine, the problem is when i check everything out on my windows machine. I can open my project and run it, and everything seems to work just fine except for the ontouch events(which do work in the gamebuilder on the imac, and on the ipad).

Is there anybody who has had the same problem? I know i could just switch to develop on osx but i don't like working on osx that much:-)

#1
09/19/2011 (6:24 am)
@Hilbert - I have never experienced this problem before. Are there any warnings or errors in the console.log for the game on Windows?
#2
09/19/2011 (6:32 am)
I've seen a warning about missing console files?(i'm using 1.5 preview 2)
But i also get these warnings on my mac. I can post the log file in a couple of hours when i get home. I thought that maybe there was a file not checked in correctly or something, but i think i should have the same behavior on my mac then.
#3
09/19/2011 (11:53 am)
Here's my log file :

Processor Init:
AMD (unknown), ~2.20 Ghz
(timed at roughly 2.21 Ghz)
FPU detected
MMX detected
3DNow detected
SSE detected

Math Init:
Installing Standard C extensions
Installing Assembly extensions
Installing FPU extensions
Installing MMX extensions
Installing 3DNow extensions
Installing SSE extensions

Input Init:
DirectInput enabled.

Initializing chunk mappings...
o 'TEXT' maps to TextChunk
o 'SCHK' maps to UnknownChunk
o 'SCHK' maps to SimChunk
Binding server port to default IP
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/main.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/main.cs. Took 0 ms
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/main.cs. Took 0 ms
% - Initializing Common
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/defaultPrefs.cs...

Using OpenGL rendering. Fullscreen: 0

Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/defaultPrefs.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/xml.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/xml.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/properties.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/properties.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/common.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/common.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/audio.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/audio.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/canvas.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/canvas.cs. Took 0 ms
Video Init:
Accelerated OpenGL display device detected.

Activating the OpenGL display device...
Activating the OpenGL display device...
Setting screen mode to 320x320x32 (w)...
Creating a new window...
Acquiring a new device context...
Pixel format set:
32 color bits, 24 depth bits, 8 stencil bits
Creating a new rendering context...
Making the new rendering context current...
OpenGL driver information:
Vendor: ATI Technologies Inc.
Renderer: AMD M880G with ATI Mobility Radeon HD 4250
Version: 3.3.10179 Compatibility Profile Context
OpenGL Init: Enabled Extensions
ARB_multitexture (Max Texture Units: 8)
EXT_blend_color
EXT_blend_minmax
EXT_compiled_vertex_array
EXT_texture_env_combine
EXT_packed_pixels
EXT_fog_coord
ARB_texture_compression
EXT_texture_compression_s3tc
(ARB|EXT)_texture_env_add
EXT_texture_filter_anisotropic (Max anisotropy: 16)
WGL_EXT_swap_control
OpenGL Init: Disabled Extensions
EXT_paletted_texture
NV_vertex_array_range
3DFX_texture_compression_FXT1
#4
09/19/2011 (11:54 am)
Max Texture Size reported as: 8192
OpenGLDevice::setScreenMode -- can't switch to resolution larger than desktop in windowed mode!
Setting screen mode to 1024x768x32 (w)...
OpenAL Driver Init
OpenALInitDriver() failed
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/keybindings.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/keybindings.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/projectManagement.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/projectManagement.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/levelManagement.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/levelManagement.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/projectResources.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/projectResources.cs. Took 0 ms
Compiling D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/SoundManager.cs...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/scripts/SoundManager.cs. Took 0 ms
% - Common scripts load time : 16 ms
Missing file: D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/gui/consoleProfiles.cs!
Missing file: D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/common/gui/console.gui!
% - Common load time : 406 ms

Torque Game Builder (v1.7.4) initialized...
iTorque 2D Torque2D for iPhone | v1.4 is active...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/scripts/datablocks.cs. Took 0 ms
Failed to load profile bitmap ()
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/gui/mainScreen.gui. Took 0 ms
% - MainScreen set to Landscape! 1024x768
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/scripts/game.cs. Took 0 ms
% - Game load time : 406 ms
Activating DirectInput...
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/scripts/egg.cs. Took 0 ms
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/scripts/basket.cs. Took 0 ms
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/scripts/eggspawner.cs. Took 0 ms
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/scripts/conveyerbelt.cs. Took 0 ms
--------Loading Resource file game/PlatformerArt/emptyLevelResources.cs
--------Adding to Level game/data/levels/emptyLevel.t2d
--------Exec()ing level datablocks game/data/levels/datablocks/emptyLevel_datablocks.cs
Luma :: t2dImageMapDatablock - ImageMap (Egg_basketImageMap) disabled 'filter-padding' as it was unnecessary!
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/data/levels/datablocks/emptyLevel_datablocks.cs. Took 31 ms
--------Exec()ing level game/data/levels/emptyLevel.t2d
t2dStaticSprite::setFrame() - Cannot set Frame without existing t2dImageMapDatablock Datablock!
Loaded compiled script D:/Programming/iTorque2D/MyProjects/ChickenGameTest/projectFiles/game/data/levels/emptyLevel.t2d. Took 0 ms
DirectInput deactivated.
Activating DirectInput...
DirectInput deactivated.
Activating DirectInput...
DirectInput deactivated.
Activating DirectInput...
DirectInput deactivated.
Activating DirectInput...
DirectInput deactivated.
Activating DirectInput...
DirectInput deactivated.
Activating DirectInput...
DirectInput deactivated.
Shutting down the OpenGL display device...
Making the GL rendering context not current...
Deleting the GL rendering context...
Releasing the device context...
#5
09/19/2011 (11:51 pm)
Could it be that maybe i checked in a file on my mac that can only be read on my mac?
I can't imagine this being the case since i don't get any strange errors in my log file. But if so, does anyone have an idea which file this could be?
Everything works fine on windows by the way if i create a new project under windows, it's just the version i checked into cvs.
#6
09/21/2011 (5:59 am)
I did a clean checkout on my imac and now the ontouch events don't work correct anymore. I have a sprite which i can move over the screen with ontouchdragged and now i can only move the sprite if i touch it exactly in the center. I now have the same behavior on my ipad. On windows the touch events still don't work at all.
#7
09/21/2011 (6:12 am)
@Hilbert - Can you zip up your Windows project and send it to me? Remove the executable's and just get me the scripts files. Send to michaelp AT garagegames DOT com
#8
09/21/2011 (11:03 am)
I mailed you my project files.
Thanks for looking into it!