12.05.2014, 19:24
(
Last edited by Johnson_boy; 01/01/2017 at 07:53 PM.
)
Removed
@receivepacket @receivestring Create3DTextLabel CreatePlayer3DTextLabel EOF GetDistanceFromMeToPoint GetMyPos GetMyFacingAngle GetPlayerArmedWeapon OnClientMessage OnNPCConnect OnNPCDisconnect OnNPCEnterVehicle OnNPCExitVehicle OnNPCModeExit OnNPCModeInit OnNPCSpawn OnPlayerEditObject OnPlayerEditAttachedObject OnRecordingPlaybackEnd PauseRecordingPlayback ResumeRecordingPlayback SPECIAL_ACTION_CUFFED SendChat SendCommand SetMyFacingAngle SetMyPos StartRecordingPlayback StopRecordingPlayback _players_included TEXT_DRAW_FONT_SPRITE_DRAW TEXT_DRAW_FONT_MODEL_PREVIEW BULLET_HIT_TYPE_NONE BULLET_HIT_TYPE_PLAYER BULLET_HIT_TYPE_VEHICLE BULLET_HIT_TYPE_OBJECT BULLET_HIT_TYPE_PLAYER_OBJECT SPECIAL_ACTION_CARRY ER_DBACCESS_DENIED_ERROR ER_ACCESS_DENIED_ERROR ER_UNKNOWN_TABLE ER_SYNTAX_ERROR CR_SERVER_GONE_ERROR CR_SERVER_LOST CR_COMMAND_OUT_OF_SYNC CR_SERVER_LOST_EXTENDED
Maybe it just me, but I have some functions and defines missing in the output (for ex. Create3DTextLabel). NPC include seems to be ignored completely (yes I have #include <a_npc>).
This is almost full list of missing things: Code:
@receivepacket @receivestring Create3DTextLabel CreatePlayer3DTextLabel EOF GetDistanceFromMeToPoint GetMyPos GetMyFacingAngle GetPlayerArmedWeapon OnClientMessage OnNPCConnect OnNPCDisconnect OnNPCEnterVehicle OnNPCExitVehicle OnNPCModeExit OnNPCModeInit OnNPCSpawn OnPlayerEditObject OnPlayerEditAttachedObject OnRecordingPlaybackEnd PauseRecordingPlayback ResumeRecordingPlayback SPECIAL_ACTION_CUFFED SendChat SendCommand SetMyFacingAngle SetMyPos StartRecordingPlayback StopRecordingPlayback _players_included TEXT_DRAW_FONT_SPRITE_DRAW TEXT_DRAW_FONT_MODEL_PREVIEW BULLET_HIT_TYPE_NONE BULLET_HIT_TYPE_PLAYER BULLET_HIT_TYPE_VEHICLE BULLET_HIT_TYPE_OBJECT BULLET_HIT_TYPE_PLAYER_OBJECT SPECIAL_ACTION_CARRY ER_DBACCESS_DENIED_ERROR ER_ACCESS_DENIED_ERROR ER_UNKNOWN_TABLE ER_SYNTAX_ERROR CR_SERVER_GONE_ERROR CR_SERVER_LOST CR_COMMAND_OUT_OF_SYNC CR_SERVER_LOST_EXTENDED |
I had a look into it, and the regular expression did indeed contain an error, resulting in those 4 first functions being skipped. That bug is now fixed.
|
However, I was unable to reproduce the issue you described with the npc file. I included a_npc in a bare gamemode, and all the npc functions were correctly parsed and written to the output file. I am relatively sure I didn't make any changes regarding that in the update, but you could try with the latest version, and see if the functions are still missing.
|
As to parsing the defines, it is not currently possible, because the defines no longer exists having preprocessed the file using the pawn compiler. I guess the best solution would be to include a predefined list definitions present in SA-MP 0.3z in the output. Another way would be to manually parse every file in the include directory, but that would result in a large number of defines which are never used in the script.
|
@Bews You could give the new version (v0.2) a shot, and see if it performs better than the previous version. It should now parse all the includes, and also solve the issues you pointed out.
|
enum filemode
{
io_read, /* file must exist */
io_write, /* creates a new file */
io_readwrite, /* opens an existing file, or creates a new file */
io_append, /* appends to file (write-only) */
}
const EOF = -1;