Jump to content


starfire_64

Member Since 18 Jan 2012
Offline Last Active Jun 08 2013 12:22 PM

Posts I've Made

In Topic: Why Are My Textures Off?!?!?!?!

26 May 2013 - 01:32 PM

 

Some potential problems (take a look and see if any apply):

  • Texture sides are not integer powers of 2. Eg 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, and so on.
  • The "Use for 3D" box on the texture has not been checked. Because GM:S uses texture pages (many sprites and backgrounds on one texture), UV coordinates outside the appropriate range will receive texels from neighboring sprites/backgrounds. The "Use for 3D" checkbox puts the sprite or background onto its own texture page, to deal with this problem (although badly).
  • Texture wrapping may be turned off. Use texture_set_repeat(true);

 

Now that that's been addressed,

  • Using execute_code or execute_file to load a model is a terrible idea. It is slower than loading the model using a format-reading script, and introduces a major security flaw.

 

 

The textures are 1024x1024, so no problem there. The "Use for 3D" was checked. Texture wrapping was turned on.

 

Quite true. The execute_file function was VERY slow, but I had already invested a lot of time and effort into it on my previous game.


In Topic: Global Variable Inhibits The Amount Of Instances

26 May 2013 - 01:21 PM

Global variables are just what they mean: Global.They are a variable that is independent of any instance. From your description it appears that all you need to do is make the variable gbnum local to each spawn object, since it appears that you don't need a global variable.


In Topic: Mplay: Connection Issues

29 March 2013 - 05:25 PM

Ok. I did a lot of work on it and found the following issues:

 

First, I disabled the firewalls on all of the computers. Then I attempted to connect two of the computers.

  • Between two Windows 7 computers, the client recognized the session existed, but it responded saying "Failed to join a session" (see first post for code).
  • Between one Vista and one 7 computer, the client did not recognized that any session existed.

Any help?


In Topic: Saving Settings For A Game

25 March 2013 - 10:54 PM

What is the best way to save specific settings for a game.  For instance, I want unlockable levels.  But I need to load the setting to tell me what levels were already unlocked.

 

Try INI files. There should be several tutorials here on the forum and in the help files.


In Topic: Mplay: Connection Issues

06 March 2013 - 03:10 PM

Anyone have ideas on this?