Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

OneSlightWeirdo

5
Posts
2
Topics
A member registered May 20, 2016

Recent community posts

(2 edits)

In attempting to mod for NTT I have come across a number of features that appear to not work as intended with the skills API. Creator YellowAfterlife has said that he will look at potential fixes for the next update; in the meantime I have been testing various things in order to find out with more precision where problems arise and (hopefully) make his job easier when it comes to fixing them. If other people could verify these bugs by testing on their own machines to check that it's not just some issue with my computer, it would be greatly appreciated.


1: skill_avail functionality

It appears that defining the skill_avail method within a custom skill mod file prohibits the skill from appearing in the pool. Verified by oneslightweirdo: running a skill.gml with no definition for skill_avail will allow it to be chosen as per normal, however defining it as: "#define skill_avail", "#define skill_avail return 1" and "#define skill_avail return 0" all remove the mutation from the pool.

trace() functions defined within skill_avail do trigger (verified oneslightweirdo), suggesting that the problem may lie not with the method itself but the way that the returned value from calling skill_avail is then used to determine mutations that may appear in the pool.

2: skill_set_active functionality

skill_set_active() appears to have no effect on custom skills. Verified oneslightweirdo: calling skill_set_active(skill,bool) for custom skill at game_start with either boolean argument will still allow it to appear in the skill pool, and calling skill_set_active(skill,bool) after the skill is taken with either argument will not allow it to reappear in the pool.

3: skill_set functionality

skill_set with custom skills does not fully give the skill to the player. It appears to trigger the skill_take method and remove the skill from the pool if set to 1, however it does not display the HUD icon or run the step method. If set to 0 it will trigger skill_lose and re-add the mutation to the skill pool, however if the player has the mutation through normal means it will not remove the step events.. Verified oneslightweirdo: Calling skill_set(skill,1) at game_start triggers skill_take and removes the skill from the pool, but active (step) events are not added. Later calling skill_set(skill,0) will allow it to appear in the pool in the future, and triggers skill_lose. Calling skill_set(skill,0) will not remove the active component of a skill from a player who already has the skill, but will allow the mutation to appear in the pool for a second time.

4: skill_get_active functionality

For custom skills, skill_get_active appears to always return false. Verified oneslightweirdo: calling trace(skill_get_active(skill)) returns 0 when the skill exists in the pool, when it is called to exist using skill_set(skill,0) and when skill_set_active() is called for either boolean argument

My thanks in advance for anyone who verifies these issues, and particularly to YellowAfterlife for making this absolutely fantastic NT mod and for any work done in the future to fix these issues!


Edit 1: updated info on skill_set issues

Can I have clarification as to how skill_avail works? I've defined it to return 1 in a skill file:

#define skill_avail

return 1


However the skill isn't being made available in the pool. Not including the skill_avail definition includes the mutation in the pool, but I am looking to make its availability variable, so I wish to define it dynamically rather than just disincluding the definition.

Thanks for the reply, I feel silly for not having checked the input API page more thoroughly. Would there be any method or function for simulating a player pressing a button virtually, in the manner of having a keyboard_key_press in that player object? Thanks once again!

Hey, I'm having problems with certain GML functions not being recognised upon compilation of mod scripts. I was wondering if there is anything I am doing wrong here, or if this is just due to the version of game maker NT is made in or some other limit on the capabilities of modmaking?

The functions I have found so far that do not work are:
keyboard_key_press
keyboard_check
keyboard_check_pressed
surface_exists
surface_create

These, and I'm sure other related functions, return "(name) is not a function or script" when loaded into NTT. If anyone could help with this issue it'd be really appreciated.

The rocket powered fist, or whatever it is called, appears to cause some issues. Playing as weaponsmith, with a blood explosion mod attached, I was able in some circumstances (it was too chaotic to tell how) to clip through the wall. Later using the same weapon, I collided with a laser crystal and got the error:

FATAL ERROR in action number 1 of Step Event0 for object Player:

Unable to find any instance for object index '59' name 'Player'at gml_Object_Player_Step_0