GM:Studio Issues

Posted by Glen on July 10, 2012, 5:59 p.m.

I'd prefer non-troll responses. But here it goes:

These functions are now obsolete in GM:Studio

variable_global_array_get

variable_global_array_set

variable_global_array2_get

variable_global_array2_set

variable_global_exists

variable_global_get

variable_global_set

variable_local_array_get

variable_local_array_set

variable_local_array2_get

variable_local_array2_set

variable_local_exists

variable_local_get

variable_local_set

I need to set/get a function variable whose name varies by the works of a string. For example:

var_+"argument0" = 0;

The above could be done with: variable_local_set(var_+"argument0",0);

Now that the function no longer works, I'm unsure as to how I would do this now. One does not simply put var_+"argument0" = 0; and expect anything else other than an error message. Any ideas?

List of all functions removed from GM:Studio:

Triggers

Registry Functions

registry_exists

registry_exists_ext

registry_read_real

registry_read_real_ext

registry_read_string

registry_read_string_ext

registry_set_root

registry_write_real

registry_write_real_ext

registry_write_string

registry_write_string_ext

CD Functions

cd_close_door

cd_init

cd_length

cd_number

cd_open_door

cd_pause

cd_paused

cd_play

cd_playing

cd_position

cd_present

cd_resume

cd_set_position

cd_set_track_position

cd_stop

cd_track

cd_track_length

cd_track_position

MCI_command

Display Functions

display_set_all

display_set_colordepth

display_set_frequency

display_set_size

display_test_all

screen_refresh

screen_wait_vsync

set_automatic_draw

set_synchronization

Splash Functions

load_info

show_info

splash_set_adapt

splash_set_border

splash_set_caption

splash_set_close_button

splash_set_color

splash_set_cursor

splash_set_fullscreen

splash_set_interrupt

splash_set_main

splash_set_position

splash_set_scale

splash_set_size

splash_set_stop_key

splash_set_stop_mouse

splash_set_top

splash_show_image

splash_show_text

splash_show_video

splash_show_web

Particle Functions

part_attractor_clear

part_attractor_create

part_attractor_destroy

part_attractor_destroy_all

part_attractor_exists

part_attractor_force

part_attractor_position

part_changer_clear

part_changer_create

part_changer_destroy

part_changer_destroy_all

part_changer_exists

part_changer_kind

part_changer_region

part_changer_types

part_deflector_clear

part_deflector_create

part_deflector_destroy

part_deflector_destroy_all

part_deflector_exists

part_deflector_friction

part_deflector_kind

part_deflector_region

part_destroyer_clear

part_destroyer_create

part_destroyer_destroy

part_destroyer_destroy_all

part_destroyer_exists

part_destroyer_region

Sound Functions

se_chorus

se_compressor

se_echo

se_equalizer

se_flanger

se_gargle

se_none

se_reverb

sound_3d_set_sound_cone

sound_3d_set_sound_distance

sound_3d_set_sound_position

sound_3d_set_sound_velocity

sound_background_tempo

sound_discard

sound_effect_chorus

sound_effect_compressor

sound_effect_echo

sound_effect_equalizer

sound_effect_flanger

sound_effect_gargle

sound_effect_reverb

sound_effect_set

sound_get_preload

sound_restore

sound_set_search_directory

mPlay Functions

mplay_connect_status

mplay_data_mode

mplay_data_read

mplay_data_write

mplay_end

mplay_init_ipx

mplay_init_modem

mplay_init_serial

mplay_init_tcpip

mplay_ipaddress

mplay_message_clear

mplay_message_count

mplay_message_id

mplay_message_name

mplay_message_player

mplay_message_receive

mplay_message_send

mplay_message_send_guaranteed

mplay_message_value

mplay_player_find

mplay_player_id

mplay_player_name

mplay_session_create

mplay_session_end

mplay_session_find

mplay_session_join

mplay_session_mode

mplay_session_name

mplay_session_status

Message Functions

text_type

button_type

input_type

caption_health

caption_lives

caption_score

get_color

get_directory

get_directory_alt

get_open_filename

get_save_filename

highscore_set_background

highscore_set_border

highscore_set_colors

highscore_set_font

highscore_set_strings

highscore_show

highscore_show_ext

message_alpha

message_background

message_button

message_button_font

message_caption

message_input_color

message_input_font

message_mouse_color

message_position

message_size

message_text_charset

message_text_font

show_health

show_lives

show_menu

show_menu_pos

show_message_ext

show_score

Dynamic Functions

execute_string

object_add

object_delete

object_event_add

object_event_clear

room_set_code

script_get_text

variable_global_array_get

variable_global_array_set

variable_global_array2_get

variable_global_array2_set

variable_global_exists

variable_global_get

variable_global_set

variable_local_array_get

variable_local_array_set

variable_local_array2_get

variable_local_array2_set

variable_local_exists

variable_local_get

variable_local_set

Transition Functions

transition_define

transition_exists

transition_kind

transition_steps

Miscellaneous Functions

discard_include_file

error_last

error_occurred

export_include_file

export_include_file_location

gamemaker_pro

gamemaker_registered

gamemaker_version

secure_mode

set_application_title

set_program_priority

sleep

Comments

Juju 11 years, 9 months ago

Obligatory: GM Studio blows.

Seriousface: I'll have a look through the manual, see what I can find.

Glen 11 years, 9 months ago

You should see the list of functions that no longer exist in gm. It's a long list.

Juju 11 years, 9 months ago

It is, isn't it… Also, I can't find a manual for GMS anywhere and the official documentation on the site is virtually unusable. What the flying fuck are YYG playing at? I'm glad I've never given any money to those cretins.

LAR Games 11 years, 9 months ago

Were there just as many added though?

Juju 11 years, 9 months ago

Ok - looking through the depreciated functions list, it's clear they've taken out a lot of the interpreted code functionality from GM so that the programs are a) faster b) more portable and c) smaller. I don't think you're going to succeed with your current approach. Might I suggest you use a big-ass array to store your data and then use argument0 as an index.

flashback 11 years, 9 months ago

That seems like an extremely large number of regressions.

Zac1790 11 years, 9 months ago

ds_map, you can store keys that lead to values.

ludamad 11 years, 9 months ago

GM's data structures are piss poor. Thats my 2 cents. Other than that fact, use ds_map regardless.

(Better yet, use a real language.)