Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handwritten assembler
#12
there is one problem with multiple people editing the patch.

you have to put your own stuff somewhere in the exe, that's sure.
now, if 2 people accidently add additional stuff to the same place, it couldn't be united.

i had an idea btw.

@CnCVK:
if you could make YR read a list of dlls to load, I could implement callers at many places in the exe, which would then be known as "events".
I would eventually be able to create something like "YR script", an assembly or even BASIC style language to code for YR, which would be compiled to dll files (would be my first compiler, but I guess I understand how they work).
this way, people could write their own function and just add them.
I would just have to do what I like best to do - researching, and adding events.

by "events", I mean something like this:
event OnUnitDamage(Unit* DamagedUnit)
DamagedUnit.Owner.DonateMoney(200);
end event

in the exe, in the damaging routine code the game would go through every dll and execute the "OnUnitDamage" function.
I'm not sure though how slow this would make the game...

I know there's a lot of ideology behind this, but if dll calls are simple enough to get working, this might be possible.
[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)