Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handwritten assembler
#18
er my version also just parses one line each frame... =S

delays could be done with a "wait" command, next= would be the "jump to script" one.

your script would have to add hundreds of strings to the exe while mine doesn't need any Tongue (except for the tags)
this results in MUCH more speed, too, cause your scripts would need many string compares (err.. comparasations?) while mine doesn't need any.

just an example how my script would spawn 3 units next to each other:
[SW gets launched to a specific cell, that is the "target cell"]
1=262,MTNK //CreateUnit "MTNK" at targetcell
2=513,1,0 //move target cell x+1, targetcell is now the cell next to the old one
3=262,MTNK //create mtnk at the new target cell

all the parameters and commands would be loaded once and could be used without any string comparing but just numbers, which speeds the stuff up extremely.
as said, you don't have to know those numbers 513 or 262 by heart but a special tool will spit these out (similar to the AI script editors) and also be able to read them

one script line would be executed per frame
if you need delays, there'll be a Wait command, which waits for a specific amount of frames.

I don't think there's a much better (concerning performance) system for this.
the scripts don't have to be tied to SWs only but could be used globablly (e.g. for "events")
[Image: jsfml.png]


Messages In This Thread
Handwritten assembler - by pd - 06.05.2006, 23:30:37
RE: Handwritten assembler - by DCoder - 07.05.2006, 06:13:12
RE:  Handwritten assembler - by VK - 12.06.2006, 16:08:53
RE: Handwritten assembler - by Nighthawk - 12.06.2006, 19:02:48
RE: Handwritten assembler - by VK - 13.06.2006, 14:15:23
RE: Handwritten assembler - by Renegade - 14.06.2006, 01:52:47
RE: Handwritten assembler - by VK - 14.06.2006, 12:46:30
RE: Handwritten assembler - by Bobingabout - 14.06.2006, 15:04:13
RE: Handwritten assembler - by Guest - 03.07.2006, 01:01:15
RE: Handwritten assembler - by pd - 03.07.2006, 10:20:55
RE: Handwritten assembler - by TheMan - 05.08.2006, 18:57:22
RE: Handwritten assembler - by pd - 05.08.2006, 20:22:56
RE: Handwritten assembler - by VK - 05.08.2006, 21:40:10
RE: Handwritten assembler - by pd - 05.08.2006, 22:20:27
RE: Handwritten assembler - by DCoder - 06.08.2006, 05:24:13
RE: Handwritten assembler - by pd - 06.08.2006, 10:46:36
RE: Handwritten assembler - by VK - 06.08.2006, 14:01:29
RE: Handwritten assembler - by pd - 06.08.2006, 14:20:53
RE: Handwritten assembler - by DCoder - 30.12.2006, 15:28:42
RE: Handwritten assembler - by Renegade - 30.12.2006, 17:29:00
RE: Handwritten assembler - by VK - 31.12.2006, 14:27:11



Users browsing this thread: 1 Guest(s)