Bug shit
From ENIGMA
Page to dump bug shit behaviour.
Contents |
JoshEdit
Moved to JoshEdit:Todo.
ENIGMA SHIT
parser/coding error
- Calling a script in an unused script causes an error
- Using with(obj) script(); doesn't seem to recognise locals in obj even when they are used in obj.
- Can't use script called init, because of depth
- Parse not done for globalvar to global var
- Doesn't look like global var is working, it's not recognising the variable at all
- Can't use variables in parameters unless declaring them
- In a script when f has not been initialised: a = f; //is fine, a = abs(f); //debug mode says accessing uninitialised variable - ie when using it in a function
- Can't use member variables in functions using var args without using self.
- Declaring local int i = int(1) parses to variant enigma::OBJ_obj_0::myevent_create() { enigma::temp_event_scope ENIGMA_PUSH_ITERATOR_AND_VALIDATE(this); {i = i return 0; }
- The function real(string) only works with variant/var
- The exit statement doesn't work
- Comparison <> not not added for !=
broken functionality
- The function execute_script is broken
- Freezes when changing depth in the draw event, and changing in the step completely messes shit up as well
- Can't collide with multiple objects of the same object type
- When setting local variables in instance creation code they get reset before the creation event
- Value for image_angle should always be in range [0, 360)
- Need to add in resource[-1] returns dummy resource, otherwise functions like place_empty won't work when there are instances used with no sprite
- Fails to compile if a sprite is blank
- Value of fps incorrect (need to use timers)
- Global variables are not reset when using game_restart
- When a game is restarted, the game start event is not triggered
- The release event isn't getting executed after key pressed when the window loses focus (ie if for example a message is shown or the user clicks outside the window). This means you need to press the key again before the state is cleared and keyboard checks are continuously executed after pressing.
- Note: should ideally io clear when the window loses or regains focus, and set key release states for all keys when losing focus