Advertisement
Marlingaming

Manual CCSPS IRON 3.0.0

Jun 14th, 2023 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. this acts as both a user and developer manual/guide for CCSPS Iron 3.0.0
  2.  
  3. ==File Formats==
  4. -txt
  5. Text document, all users have access to this file, permissions are decided by details in folders directory
  6. -sys
  7. System File, only developers can access this file, used to store important information such as boot file directories, lists, etc
  8. -os
  9. Operating system Script, can only be ran by other operating scripts
  10. -lua
  11. Lua executable
  12. -prg
  13. program executable, ran off included emulator
  14. ==prg format==
  15. It is highly recommended for you to start off with the example program included with every installation
  16. >Window
  17. Windows are what the visual side of a program is ran on. Windows visuals are handled by Graphics system. Only thing you need to worry about is giving it commands
  18. >Callbacks
  19. -onCreation(minimizable,fullScreen,title,)
  20. When ever application is first ran, this callback will be searched for and used as reference, if it is not found then it will resort to defaults(true,false,"example.txt"). It will also run all Functions below until it reaches a “end” statement
  21. -onStart(background,entitypath,)
  22. Ran when ever program is called or read
  23. -onInteraction(id,action,path/command,arg,)
  24. Apon a entity being interacted with, will search for this callback with id of desired entity. Will then run the desired command.
  25. > Entity Format
  26. id,type,text,path,w,h,wX,wY
  27. -Types:
  28. Text: Displays text, can also act as button
  29. Image: Displays Image at given path
  30. Video: Displays Video at given path
  31. >functions
  32. Functions requires a lot of explaining. First place the call, it can be in any of the mentioned callbacks in Section [Callbacks]. Should be in the “path” section of any call back that supports path/command.
  33.  
  34. The call should look like this
  35. <Function*>
  36. *name of function
  37.  
  38. Example. onInteraction("id","click",<Function>,arg,)
  39.  
  40. now to have it do stuff!
  41. -function call
  42. funct.Function*1(formula*2,event*3,)
  43. 1* name of function
  44. 2* formula/requirements for function to continue, if you want it to happen without requirements, replace with "n". Check formula section for more.
  45. 3* event called if specifications are meet. See Events Section for more.
  46. -formulas
  47. Supported args:
  48. //file explorer//
  49. [[fe.exists<target*1>]]
  50. Returns true if file exists, else it returns false
  51. 1* path of file
  52. //installer//
  53. [[in.version<target*1+req*2>]]
  54. Checks online if target file supports given version
  55. 1* code
  56. 2* version required
  57. //system//
  58. [[sys.user]]
  59. returns current user
  60. //operating system//
  61. [[os.version]]
  62. returns current os version
  63. [[os.package<target*1>]]
  64. returns if os has target api
  65. 1* api call
  66.  
  67. //general
  68. See Arguments
  69.  
  70. -Events
  71. Events are used to request console to run a command or action
  72. Following are supported at time of writing:
  73. /file Explorer/
  74. [[fe.open<target*1>]]
  75. opens target file in a new window
  76. 1* path
  77. [[fe.delete<target*1>]]
  78. requests deletion of chosen file. if file isn’t within same directory as program file and isnt listed on admin applications list, will prompt user if it’s okay to delete given files.
  79. /installer/
  80. [[in.dwld<code*1+path*2>]]
  81. Installs target file at given path, if path is outside programs directionary and isn’t a admin file, will prompt user if they are okay with downloading file
  82. 1* pastebin code
  83. 2* path to download to
  84. > Arguments
  85. When ever you see “arg”, you follow this
  86. Layout: {a.b.c.d.e.}*
  87. *letters used in place of variables
  88.  
  89. Call backs will give following args depending on what activists them:
  90. x - x position of mouse at call
  91. y - y position of mouse at call
  92. t - time of call
  93. d - day at call, from January 1970
  94. f - frame at call
  95. i - key input at call
  96.  
  97. ==Operating System==
  98. > Console System
  99. To allow simultaneous operations of many tasks, and Windows, OS runs primarily off a dual system, Console and Graphics. Console receives all updates/events and creates/edits files. While graphics opens those files and displays the results on the screen.
  100.  
  101. -Events
  102. /application/
  103. Used by applications to request changes/data/actions from console. This is what allows multiple Windows to be up at once, working together
  104. /security/
  105. Highest priority Event category. Only files allowed to run with this event type contained inside are ones with the .os tag, this event is used for crashes, updates, alerts, etc
  106. /installer/
  107. Used to let console and user know how installation of new files is going
  108. /network/
  109. Used by local network features
  110. /general/
  111. See CC Tweaked wiki, events for information on basic events
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement