Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.29 KB | None | 0 0
  1. {
  2.     "Categories": [
  3.         {
  4.             "CategoryName": "SytheLib Functions",
  5.             "Functions": [
  6.                 {
  7.                     "Name": "Assert(bool x, string line)",
  8.                     "Description": "Aborts the script if x is false and provides line as an error message.​"
  9.                 },
  10.                 {
  11.                     "Name": "BitmapToBackbuffer(int x1, int y1, int bmpID, int op)",
  12.                     "Description": "Probably a function you will never use. This dumps a bitmap into the backbuffer at the x,y coordinates specified. It can be used for removing noise from the backbuffer by dumping a mask over the noise if you have a sensitive algorithm. op is one of four values: 0 - copy, 1 - bitwise and, 2 - bitwise or, 3 - xor​"
  13.                 },
  14.                 {
  15.                     "Name": "BitmapToString(int bmpID)",
  16.                     "Description": "Dumps a bitmap to a sythelib bitmap string.​"
  17.                 },
  18.                 {
  19.                     "Name": "CalculateMinimapAlignment(int& alignmentscore, int mapcenterx, int mapcentery, int radius, int wallcolour, int coltolerance, int deftolerance) ",
  20.                     "Description": "As with CalculateMinimapMovement() this function analyses a game minimap. Provide the wallcolour and colour tolerance (10-20 usually) and deformation tolerance (0 or 1 usually) and this function will populate alignmentscore with a number indicating how 'aligned' the minimap map is based on right-angle structures in the minimap. The return value is s direction score which tries to guess which way you should rotate the map to align it better. -1 counter clockwise +1 closewise. Call this function in a loop attempting to maximize alignment score to align your minimap.​​"
  21.                 },  
  22.                 {
  23.                     "Name": "CalculateMinimapMovement(int& dx, int& dy, int& dr, int mapcenterx, int mapcentery, int radius, const int pointcount, int rottolerance, int coltolerance, int deformtolerance, int maxdistance)",
  24.                     "Description": "One of the most complicated but most useful functions for game scripting. This function is re-entrant, expecting to be called in a loop. This function tracks a set of pixels on a minimap (and therefore expects to be called many times a second) and returns the relative movement of the map through dx,dy and the relative rotation of the map through dr. mapcenterx, mapcentery should specify the center of your target application/game's minimap. radius should specify the number of pixels wide the map is. pointcount specifies how many points around the radius the function should watch. The larger this number is the slower the function is but the more accurate it is generally speaking. 32 is a good first guess. rottolerance, coltolerance refer to the amount of rotation of the minimap the function will ignore (set this to 0 or 1 usually), and the amount of colour variance the function will ignore (10-20 is a good bet). deformationtolerance is as defined in other functions, 0 or 1 is a good bet. maxdistance refers to the maximum number of pixels away to look for the pixels that the function is tracking. this number will be larger if you call it less frequently. 1 to 3 is fine for frequent calling.​"
  25.                 }    
  26.             ]
  27.         }
  28.     ]
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement