Posts: 167
Threads: 11
Joined: Jan 2007
Rob Wrote:If you know Assembly and C then you shouldn't have a problem with C#. C# is like C/C++ on training wheels. Just powerful enough but doesn't let you really break anything.
I enjoy assembly, it's really interesting to see what instructions your high level code breaks down to and it's the only language where a goto (JMP/jump) isn't considered a bad practice.
Rob, don't tell me you are one of the few guys out there that still play corewar ???!!???
Posts: 1,249
Threads: 108
Joined: Dec 2006
Bl00dH0unD Wrote:OMG! :eek: a grammar mistake:badgrin:
i have a dream...
Grammar is quite different than spelling
Yankovic - "... Oh Nasir, sorry, you are teh greatest. I'm a fool, you were right all the time. please forgive me. ..." (possibly out of context)
Posts: 49
Threads: 0
Joined: Jan 2007
Rackull Wrote:Rob, don't tell me you are one of the few guys out there that still play corewar ???!!???
I had to google that to see what it was. Nope never played it but I do have a computer engineering degree from Virginia Tech that required 2 classes in Microprocessor design with x86 assembly.
Posts: 167
Threads: 11
Joined: Jan 2007
Rob Wrote:I had to google that to see what it was. Nope never played it but I do have a computer engineering degree from Virginia Tech that required 2 classes in Microprocessor design with x86 assembly.
Well then you should be more than able to write some redcode and place your best program against mine
I'm ranked on
http://corewar.co.uk with an alias from old old times
and no I will not say what alias it is
Posts: 1,513
Threads: 104
Joined: Jan 2007
Rob Wrote:I had to google that to see what it was. Nope never played it but I do have a computer engineering degree from Virginia Tech that required 2 classes in Microprocessor design with x86 assembly.
mmmm microprocessor.... assembly haha
go ALU! haha
Quote:code SEGMENT
main PROC
ASSUME cs:code,ds:data
mov ax,data
mov ds,ax
mov al,5
add al,7
lea di,msg1
call outstring ;sbr to print string
call outbyte ;sbr to display value in al
main ENDP
code ENDS
data SEGMENT
msg1 db "The sum is = ",04,0dh
data ENDS
END
how i don't miss the days of assembly lol
Quote:I enjoy assembly, it's really interesting to see what instructions your high level code breaks down to and it's the only language where a goto (JMP/jump) isn't considered a bad practice.
haha when our teacher started C he said "this is the only time i will show you a goto statement. you are never allowed to use it after today. last year's class got hooked on it and didnt use anything else"
we were all pissed we couldn't use goto because our asm codes were absolutely full of jmp, ja,jb, etc
Thanks,
GM Pande
[SIGPIC][/SIGPIC]
Posts: 29
Threads: 0
Joined: Mar 2007
Hey, I've got a question relating to RunUO and C# scripts.
So I got the source code and and MVC# and all that, but whenever I make a change and want to test it, for some reason it needs to compile the whole source, even though I just made the change to one file. Now, with C and C++, the makefiles are usually smart enough to only compile the files that have changed. Is there anyway to accomplish the same thing in C#? Because I can't imagine myself accomplishing much if I have to wait two minutes every time I want to test my code...
Posts: 2,448
Threads: 164
Joined: Nov 2006
I'm not a developer but yeah, I'm almost certain you have to compile all RunUO scripts even if you just make a change to one file.
Posts: 132
Threads: 13
Joined: Jan 2007
My three month vacation starts soon i might have som free time.
Will help out as much as i can if i just could remember my username and password to the SVN.
Posts: 29
Threads: 0
Joined: Mar 2007
Quote:I'm not a developer but yeah, I'm almost certain you have to compile all RunUO scripts even if you just make a change to one file.
That's no good.
Posts: 2,448
Threads: 164
Joined: Nov 2006
Fallzone, catch me on MSN. I might have removed your SVN access when I restructured everything.
Posts: 49
Threads: 0
Joined: Jan 2007
Jonny Wrote:Hey, I've got a question relating to RunUO and C# scripts.
So I got the source code and and MVC# and all that, but whenever I make a change and want to test it, for some reason it needs to compile the whole source, even though I just made the change to one file. Now, with C and C++, the makefiles are usually smart enough to only compile the files that have changed. Is there anyway to accomplish the same thing in C#? Because I can't imagine myself accomplishing much if I have to wait two minutes every time I want to test my code...
Well with C and C++ the compiler generates object files that it then links all together to make a lib or dll. And java has the class files that it makes and it puts into a jar. So when you do a build
make is smart enough to only rebuild the object files/class files for the source files that have changed. But with C# I don't think the compiler generates intermediate files that are then linked together to form the Scripts.dll and it's actually
make that does that anyway. The scripts aren't built with
make, they are built using the c# compiler internally in runuo. You could probably write a makefile to build scripts.dll and pass in server.exe as a reference. But compiling the scripts doesn't take that long at all anyway, < 5 sec for me. The annoying part was the world loading. At some point I did make it so that I could only compile but I don't really remember what I did, pretty sure it was a core change though.
Does that make sense?