Knowledgebase

From GameStudio Wiki

Jump to: navigation, search

A list of common questions and their answers. Most of these are taken from email or forum posts (names and details edited).

If you are having problems, please start by reading these Important rules on getting help before posting questions on our User Forum or emailing. It will really save you time.


I created a map entity and saved it, but I can’t load it into my game.

Make sure to build the map entity with the WED Map Compiler. To do this: open the map entity .wmp file in WED, select the 'Build' icon, make sure the "Build Map Entity" box is selected in the compiler dialog box. This will create the .wmb file that Load Entity is looking for. Be exact, *.wmb not *.wmp:

level_load("newlevel.wmb"); // load newlevel.wmb
wait(2); //give 2-3 frames on background operations

(XBox controller) how do you get the right analog stick to work

The XBox controller can work different ways depending on how it is set up. The original XBox controller needed a 3rd party app to run, the XBox360 Wired controller is using a Microsoft interface.

Normally the best way to get the info is to open up the Windows "Control Panel->Game Controllers" app. Select your XBox controller from the list (it should be listed), and bring up the Properties window. Click on the Test tab and play around.

Currently the standard interface for the XBox360 controller, the left stick used X/Y Axis, the right stick uses X/Y Rotation. See the user manual joy_raw and joy_rot for help on using these values.

Personal tools