w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Where does Perl for Windows look when a script has a default directory like /usr/games/lib?
As you say, it defaults to that location, but that is a Unix-like location. Path separators aside, that directory structure is unlikely to be found on a windows system. Use that switch to point to the directory on your system which contains the needed files (i.e. c:path ofiles).

Categories : Windows

Script Bash & Batch - Resolution in Wine & Windows Registry For Some Games
Under Cygwin (or possible some lighter environments as well) this would give you your resolution: #!/bin/bash ScreenWidth=$(wmic desktopmonitor get screenwidth | grep -o '[[:digit:]]+') ScreenHeight=$(wmic desktopmonitor get screenheight | grep -o '[[:digit:]]+') Resolution="${ScreenWidth}x${ScreenHeight}" ... Credits to Endoro for suggesting the command wmic.

Categories : Bash

fclose() causing a crash in windows
fclose itself is most likely fine. The problem is probably that you have undefined behavior elsewhere in your code, which is causing the program to crash later. The crash just happens to occur during the call to fclose. One example I can see of undefined behavior is: fileName = malloc(sizeof(char)*17); strcpy(fileName,"res/SEN/ / .txt"); This writes 18 bytes (including null terminator) into the allocated 17 bytes. There is also a similar buffer overflow when writing into number. And there could of course be other instances of undefined behavior elsewhere in the code, including in functions you haven't shown. One possible way to try finding the problem is to disable sections of code and see if it still crashes.

Categories : C

Windows Phone 8 SDK crash, mainboard issue
What is the crash? A bluescreen? And what codes? Does system event log say anything interesting? I don't think Visual Studio will try to start the phone emulator until you actually try to debug a phone project in it, so I don't see the immediate connection to Hyper-V. Does your system crash when you open Visual Studio with no active project? That might absolve Hyper-V. Alternatively, can you create some other virtual machine image (e.g, from Ubuntu or another Windows), and try booting that one? If your host machine crashes when you do that, then it would implicate Hyper-V. Windows can crash if it gets too tight on system RAM, and 3G of RAM is not very generous. Both Visual Studio and Hyper-V use a lot of RAM, so you might indeed have problems running them both at the same time.

Categories : Visual Studio

Generate Windows Phone 8 Crash Dumps
In "App.xaml.cs" class you will find a method called "Application_UnhandledException". This method is launched every time that your app crashes due an unhandled exception. In the event args you will find the error message, stack trace, etc... Add your logic here to dump the crash (for example, send an email, or store the log in a database, etc...) BTW, if the exception is recoverable, you can handle the error and don't close the app setting the Handled variable to true: // Recover from the error e.Handled = true;

Categories : Windows Phone 8

Suppress / Mute windows crash message box
Try https://metacpan.org/module/Win32API::File#SetErrorMode This provokes a crash and pops up a dialog perl -MWx -le " Wx::Font->new(undef) " This provokes a crash and pops up a dialog (perl.exe has encountered a problem and needs to close.) perl -MWin32API::File -MWx -le " Win32API::File::SetErrorMode(2); Wx::Font->new(undef) " So it seems to work, and Win32API::File comes standard since v5.8.9 update: Another test/demo, Wx-free, not fixed yet perl -e " use open qw{:encoding(UTF-8) :std}; fork; " perl -MWin32API::File -le " Win32API::File::SetErrorMode(2); use open qw{:encoding(UTF-8) :std}; fork; "

Categories : Windows

Do crash 'popup' windows show when SAS is running in batch?
If you're running in batch mode but running in an interactive Windows session (ie, not running via the scheduler on an account that's not logged in currently), then yes, you will see the popups when SAS.EXE crashes. It will be just like any other program crashing (ie, nothing particularly SAS specific). If it's running on a 'nightly run' then you should be able to run it non-interactively, in which case it should not affect anything subsequent; this depends on the specifics of how you've set up the scheduler. I would normally schedule each SAS job as a separate process and then set them up as dependent on success of the prior run. You certainly should be able to run a specific process just to test your changes that could be scheduled to run after all of the 'critical' (production) runs

Categories : Sas

Windows: Notification when child dies (crash or exits normally)
Actually there is a way to interrupt WaitForMultipleObjects(). Create a designated manual-reset event object using CreateEvent(). Include the event handle to WaitForMultipleObjects() along with your existing child process handles. Signal the event with SetEvent() each time a new child process is created. This way, WaitForMultipleObjects() exits whenever a child process exits (for whatever reason) or the event is signaled, then you can update the list of handles as needed, reset the event with ResetEvent(), and call WaitForMultipleObjects() again.

Categories : Windows

Restore Windows application crash Debug button
Found in this answer. Go to the Tools | Options | Debugging | Just-In-Time dialog. Then make sure all Native and Managed (if you're debugging a .NET application) are checked. Next time you get a crash, the Visual Studio Just-In-Time debugger will come up. And this restores automatically the Debug button:

Categories : Visual Studio

Analyzing Crash Dump of Windows Service with SEHException
When you get such errors, convert the codes in Hex format, which is HRESULT 80004005 Error Code C00002B4 Google searches are much better then. 80004005 is E_FAIL, a very generic error C00002B4 seems to be EXCEPTION_FLOAT_MULTIPLE_FAULTS If you use a C++ component and specify the /fp:strict or /fp:except compiler switch, this is not compatible with .NET any more. See Specify Floating Point behavior at Microsoft. .NET likes floating point exceptions to be masked. You can try fixing this by declaring [DllImport("msvcr110.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int _controlfp(int n, int mask) and resetting the floating point behavior after you called the C++ code: CallMyCppCodeHere(); _controlfp(0x9001f, 0xfffff);

Categories : Dotnet

jquery mobile windows phone 7 back button crash
Try the following code: <div data-role="page" > <div data-role="header"><h3> Header </h3> </div> <div data-role="content" > <a href="#page2" data-role="button">Page 2</a> </div><!-- /content --> </div><!-- /page --> <div data-role="page" id="page2"> <div data-role="header"><h3> Header </h3> </div> <div data-role="content" > <a href="javascript:;" data-rel="back" data-role="button" >Back</a> </div><!-- /content --> </div><!-- /page --> Hope it works.

Categories : Jquery

D3.js rendered page crashes on all major browsers on Mac but doesn't crash on Windows or Ubuntu
**Here's more of the crash report** Process: WebProcess [239] Path: /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess Identifier: com.apple.WebProcess Version: 8536 (8536.30.1) Build Info: WebKit2-7536030001000000~9 Code Type: X86-64 (Native) Parent Process: ??? [237] User ID: 501 Date/Time: 2013-07-23 09:47:09.948 -0700 OS Version: Mac OS X 10.8.4 (12E55) Report Version: 10 Interval Since Last Report: 15004 sec Crashes Since Last Report: 5 Per-App Interval Since Last Report: 3920 sec Per-App Crashes Since Last Report: 1 Anonymous UUID: B207ABFE-2713-74A6-B3B1-725AF872DA13 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Ex

Categories : Osx

Windows Phone 8 - images show correctly in XAML designer, application crash on device
put all your images in the ClientBin folder(this is under project_name.Web folder) and then refer them like bellow it will work. <vm:ItemViewModel PageName="page1" ImageUri="image1.png"/>

Categories : Wpf

Windows 2003 Server Crash - Now on 2008 - MySQL IBData1 File Shows Default Tables Only
I'm not sure if I actually need to ask, but are you sure you're putting the files in the correct directory? The fact that you've replaced the IBData1 file and you've still got the old users after server restart... As far as I know too, information_schema and performance_schema are actually views built from non-file sources, so won't be part of the IBData1 file. Although I have more experience with Linux systems, I know MySQL is fussy about ownership and permissions of the data files. Also, I would move the log files away from the data dir (while the server is stopped) as the current ones will probably be no use anyway and new ones will be zero-filled on mysql start anyway. If you've already checked the permissions and ownership, also have a look at if innodb_file_per_table is set in

Categories : PHP

How can I fix an app crash which is irreproducible? Crash report and console log attached
You error message said: [__NSArrayM objectAtIndex:]: index 0 beyond bounds . The reason probably is that using an NSMUtableArray (__NSArrayM) is not thread safe, see here. Without any code provided, I suggest that you read the Threading Programming Guide cited very carefully, and correct your code accordingly.

Categories : IOS

C# Application does not crash in VS BUT CRASH on system running
Your program is likely throwing an exception, and it's getting written to the console, but you don't have anything from stopping the console from closing immediately after the message is written. Add a Console.ReadKey(); after your try/catch block.

Categories : C#

IOS - Unexpected Crash With No Crash Info
You should have some protection around imageFile.getData as it could return nil. You should preferable use the getData: method which returns an error that you can use if the data can't be accessed. NSError *error = nil; NSData *imageData = [imageFile getData:&error]; if (imageData != nil) { imageHolder.image = [UIImage imageWithData:imageData]; } else { NSLog(@"OMG!! %@", error); }

Categories : Iphone

Maybe you ignoring the upper/lower case? Also use like You can use this: SELECT * FROM games WHERE (LOWER(genre) like 'indie') OR (LOWER(title) like 'indie')

Categories : Mysql

why can't I run my games in python
You have to include pygame.init() in your code before you do anything with video. Hope that fixes the problem. I wouldn't learn Python by starting with pygame. Try watching Bucky's tutorials at TheNewBoston on Python. They will teach you about basic python syntax. Although he does a pretty good job at teaching the Python basics, I advice you to look through the python documentation and read about useful modules, features, etc. When you feel ready to do graphics, check his tutorials on game development (pygame). After that, just make something.

Categories : Python

Playhavan more games widget
On the PlayHaven dashboard, edit your "More Games Button" and make sure the "Enable Featured Game Preroll" is uncheck. Can't insert image to my answer but heres the link for the screenshot. http://screencast.com/t/VDNsb7rY

Categories : Iphone

Static fields and online games
It's "local" to the ClassLoader which defines the class. It's unconnected to any instances of the class - for example, the variable can still be used even if there are no instances of the class. But it won't automatically be shared between different JVMs or even different ClassLoaders within the same JVM.

Categories : Java

NanoHTTPD stopped when I play games
It'll get killed by the Android system unless you place it into a Service and make it a foreground service.

Categories : Android

Database schema for two-player games
I would definitely do one row per score (i.e. 2 rows per game). I would store the player, and points, and if I wanted the opponent player/points, I'd look that up separately. I would almost certainly have a separate table for each game, which would mention things like when it was played, etc No redundant data, everything is easy to gather etc.

Categories : SQL

Converting Flash based games to Apk's
Of course yes. You can create a new mobile project in flashDevelop or flashBuilder, put all the libraries and classes to a new project, check out the pathes and compile. Of course, if you game is platformer with control from the keyboard, you will need to add buttons directly on the screen or other means of control character. Must take into account the nuances of devices, screen sizes, management, and the performance

Categories : Android

Can I make desktop-only games using libGDX?
Checkout this, here you see that you use your core project to put all the non-specific platform code, and the desktop project is the project you run when you want to run for the desktop.

Categories : Java

Debugging UDK games with Visual Studio
Try nFringe, or one of these: http://forums.epicgames.com/threads/940192-UnrealScript-IDE-for-Sublime-Text-2-NEW-Debugger http://forums.epicgames.com/threads/749655-Unreal-Script-IDE-Editor-Debugger-Ini-Editor

Categories : Visual Studio 2012

Application marked as using Play Games
Quoting my answer from another question: http://stackoverflow.com/a/17633229/226508 Implementing the Google Play Game Services features is not sufficient, your users have to use the service for you to get the badges. Let me quote from this video from Google I/O 2013: Practical Android Games Development http://youtu.be/ZbQWf7C5ymU?t=23m39s "As you get more users you will get badges. [...] However, they are not just given out because you put them in the config, and we don't snoop your APK to see if you are making API calls from there. We verify how much the feature is being used and if you meet certain threshold we give you a badge. So you need to actually integrate it, it is not a token thing that you can put there to get more eyeballs in the store."

Categories : Android

What is a smart movement system for games? (2D)
Are you doing a real time game or per turn. Any case manage a lifecycle for those variable. supposing you use a turn based game, bullets have a licycle of infinity until collisions and movements of 1 game cycle

Categories : C++

Android Games specifically bitmaps
Depending on how dynamic your bitmaps render will be, you should go for either GLSurfaceView or SurfaceView, for something simple as just bitmaps i would recommend you to use SurfaceView as "renderer" where you can get the canvas from and of course you can draw on the whole screen if your surfaceview match the screen size. TouchListener should be completely separated handled on its own listener promoting encapsulation and reuse of code for future apps that you want to do. I've found this quiet helpful for the last games i've developed asingning a surface view as renderer and just creating Objects which takes the canvas as parameter and drawing them self into it, the only thing you have to take on count is the bitmap resource management, but if you are careful of releasing and creating the

Categories : Android

Getting all games with the same category as a chosen game
How about this ? SELECT * FROM jogos WHERE intCategoria = ( SELECT intCategoria FROM jogos WHERE idGames = $currentGameId ) Where $currentGameId is the id of the game being played.

Categories : PHP

A local repository to update games?
Version Control Systems work with revisions, yes, that counts for either SVN and git. In case of new program versions it naturally makes sense to put them into revisions, as they are usually only a snapshot of XYZ in a certain point in time. XYZ being whatever want it to be, binary programs, images, files, etc. But to make it really part of a revision you would also need to commit the newly fetched changes. That in the end makes a new revision of your (let's say) games tree. Those revisions then can be fetched from the client computers. That can happen either by scripts that automatically check the server every couple of minutes (cronjobs?) for changes or manually. The benefit of that workflow is quite obvious, in case your new versions are not what you want (e.g. later you notice they

Categories : GIT

Developing Html5 and Mobile Games
HTML5 is still new, so there are a lot of emerging engines and development tools. Unfortunately, this means there are a lot of 'fly-by-the-night' engines that don't last long. The two companies with the most funding to work with are Game Closure and Turbulenz, so those are making more of a push for the 'professional' game developer audience. Funding doesn't always mean reliability however - they have more demand to reach for a higher exit for the company, and if they're not able to raise secondary rounds, they will be dead in the water. An alternative suggestion would be something like ImpactJS, which, while developed primarily by one person, has been reliably updated over the course of 2 and a half years. You can find more HTML5 game engine options on this site (full disclosure: I bu

Categories : Android

How iPhone games/apps can connect to other iphones
Check out the tutorials under Network programming at Ray Wenderlich's site. They are nicely done and should help you grasp the main concepts.

Categories : Iphone

Concerning batch games, find and replace a string
try this (output is in %inifile%.new): @ECHO OFF &SETLOCAL ENABLEDELAYEDEXPANSION SET "inifile=file" FOR /f %%a IN ('^<"%inifile%" find /c /v ""') DO SET /a lines=%%a < "%inifile%" ( FOR /l %%a IN (1,1,%lines%) DO ( SET "line=" SET /p "line=" IF NOT "!line:playerHP=!"=="!line!" ( FOR /f "tokens=2delims= " %%b IN ("!line!") DO SET /a HP=%%b*12/10 SET "line=playerHP= !HP!" ) ECHO(!line! ))>"%inifile%.new" Input/output: >type file playerName= Marche playerRace= Elf playerHP= 100 playerSPD= 200 playerATK= 120 playerDEF= 70 >test.bat >type file.new playerName= Marche playerRace= Elf playerHP= 120 playerSPD= 200 playerATK= 120 playerDEF= 70

Categories : Batch File

SQL joins - Games where Users can place Bets
have you tried this one? SELECT a.id GameID, b.id BetID FROM Games a LEFT JOIN bets b ON a.id = b.game_id AND b.user_id = 1 -- <<== ID of the User ORDER BY a.ID ASC

Categories : SQL

Can my app load only the games installed on users device?
In Android, you cannot set your app as "Game Type" so you cannot filter applications by this category. I think, a solution to this would be to find all games packages from Google Play and put that list in your app and frequently update it. It needs uninterrupted internet connection so that you could send found apps list to server and server will return back games from that list. So, you need to write server code for that.

Categories : Android

I need a explanation for code of "beginning android games"
For your first question: AndroidGame is an abstract class. This means it doesn't have to implement all methods of Game, as long as one of the classes extending AndroidGame does this. As you can see from the code, this is done in MrNomGame: public class MrNomGame extends AndroidGame { public Screen getStartScreen() { return new LoadingScreen(this); } } Now for your big question: In onCreate, a renderer is created: renderView = new AndroidFastRenderView(this, frameBuffer); If you have a look at that class, you see that onResume creates a new thread that runs the following code: public void run() { Rect dstRect = new Rect(); long startTime = System.nanoTime(); while(running) { if(!holder.getSurface().isValid()) continue;

Categories : Java

How to secure Flash Games from Cheat Engine?
You can't. It's unavoidable. Abandon all hope. Your game is client-side and can be tampered with. The score is sent from the client which can be intercepted and changed before it is sent to the server. Anything you do to try encode the score will fail because your SWF can be decompiled and the algorithm reverse-engineered. Even if you put yourself through hell to obfuscate your SWF and the logic used to encode a decode a score, you will not prevail. All you can do is make it not worthwhile to cheat by maximising the difficulty of sending faux scores; make the criteria of a valid score strict and hard to determine e.g. a multiple of a given number minus x.

Categories : Actionscript

Steam API getOwnedGames showing games not in library
One possibility is to filter 'games' that have "playtime_forever": 0. As an example, this would filter appids 9, 92, 211 from the below snippet. { "appid": 9, "playtime_forever": 0 }, { "appid": 92, "playtime_forever": 0 }, { "appid": 211, "playtime_forever": 0 }, { "appid": 440, "playtime_2weeks": 188, "playtime_forever": 107307 }, This is going to catch everything for you though, because people that have 'played' these games will have play time. So, for the above you would have filtered out the Source SDK, but for another user that has used it the SDK would appear.

Categories : Java

Why is Audio such an issue in HTML5 Games and how soon will it be corrected?
You have to understand that different browsers support different types of audio files as shown on this website http://html5doctor.com/html5-audio-the-state-of-play/ This is mainly due to the lack of regulations and standards surrounding HTML 5, users and developers may find it difficult to support all audio formats on all browsers. I've read somewhere that you can add in different audio formats and if one fails, it will play the other format but I can't find the link again. Sorry :( Good Luck

Categories : HTML

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.