[Tool/Web/Other] CodeParser: Generate auto-complete files for Sublime Text / Notepad++ (Qt/C++)
#5

Quote:
Originally Posted by Bews
View Post
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)