« first day    last day (28 days later) » 

10:30 AM
@William'MindWorX'Mariager, i have made a new question for my prob yesterday: gamedev.stackexchange.com/questions/85995/…
 
 
2 hours later…
12:16 PM
hi
 
Heya
I'll answer your question as soon as possible.
Which version of SharpCraft are you using?
The latest on WC3C?
 
i created a question thread like some suggested, so i can give you rep whenh you answer. gamedev.stackexchange.com/questions/85995/…
im still on 1.2.4.0
 
12:30 PM
heres the full package from TriggerHappy im using (JNGP207 + SharpCraft1.2.4.0):
 
0
A: Warcraft III, SharpCraft C# plugin: Usage of native "TimerStart"?

William 'MindWorX' MariagerThe JassCode type is only there as a placeholder, and it doesn't have any actual use right now. The code type from JASS is a pointer to a function in a maps compiled JASS script. I have tried creating new JASS script code at run-time, but I haven't had any good success so far. Since you're usin...

I'm currently redoing some things in SharpCraft, so I'll be releasing a new version soon. :)
 
cool, so you have some more free time again?
 
Yeah, vacation right now. :)
I've also worked on it on and off for some time.
I've stripped away all the "fluff", and SharpCraft on it's own, is just a plugin system for Warcraft III now. The extra features come in plugins now.
Like JassAPI which has Jass types and all the native stuff.
And WarAPI which has all the core game stuff. :)
Should make it easier to maintain.
 
yeah, the last statement from you about SharpCraft on the THW was about feature creep.
 
12:42 PM
ok, i will try to update to the current version & see if i can make it work
 
I have a lot of ideas I want to try out, but adding them to SharpCraft was a mistake.
Now I can manage them as experimental plugins for people to use. :)
I had this idea of replacing the internal directx8 calls with directx9 calls. This would allow people to do all sorts of things, like new shaders, more interface things, etc.
You might get compiler errors with the newest version, but I'll guide you through it.
Thing is, from v1 to v2 there were a lot of things removed.
But also added things to make everything easier.
With v2, you don't have to declare natives manually anymore.
Actually
Don't update just yet.
Lemme get the version I'm working on now out first.
It's much more stable.
 
thats sounds really interesting! also like "Bribe" mentioned, this was a good decision. hmmm, if i may ask, when are you nplaning to release the new version? now that you gave me a solution to work with timers, i would really like to continue the plugin...
 
I'll release it within the next hour unless I run into problems. :)
 
O.O i didnt expected that short period! cool, im with you, of course i will wait then.
 
Well, you sort of poked me with your questions. :P So I figured I should get the new version out as soon as possible.
I didn't really think people still used SharpCraft.
 
12:51 PM
hehe. im addicted to SharpCraft! now that you can react to the input it already is amazing, besides all the other possibilities i cant even think of.
 
Yeah, there's a lot of possibilities with SharpCraft.
 
i think that many people are still waiting for it to become more userfreindly. i also was in a situation where i had to decide if i will try it out. most what detered me from using it, was a missing introduction and also missing information in the forums on wc3c.net & thw.com. but thanks to mainly TriggerHappy & you, I got into it a little bit & I learned to love your work :)
 
Yeah, I really need a few tutorials to get started.
Are you using Visual Studio or Notepad++?
 
neither, im using jEdit :)
 
Ah
Well, I should make a Visual Studio tutorial. Makes everything soooo much easier.
 
12:58 PM
vexorian wrote edit modes for jEdit & suggested to use it. before i used notepad++, but now i love jEdit: wc3c.net/showthread.php?t=108019
 
Interesting
The advantages of using visual studio is you can compile your plugins, you get auto-complete and live error reporting. :)
 
yeah, what deters me from visual studio is the big software package. but i should install it anytime in the future, you are right.
 
Yeah, it's a big piece of software.
Luckily, the express version is free and works fine for SharpCraft plugin development.
 
1:12 PM
im away for lunch for approx the next hour. will be back afterwards.
 
Alright
I'm almost done with the changes as well. :)
 
1:28 PM
There you go. I'll release the core plugins soon. :) Just gotta get ready for work.
 
2:10 PM
wew, lets see...
 
It wont work until you get the plugins, but I'm working on getting them uploaded.
 
i see, because the console window just closed after wc3 is started via the "Start game windowed.bat"
"Just gotta get ready for work." - do you have to work today?
 
Yeah, but I should still have time to help out. :)
 
ok, my weekend already began. yeah, would be cool if i can use your new release with the timer native
for now i downloaded "v3.0.0.133" and renamed my current sharpcraft folder to sharpcraft_backup & put the content from the new version into a new folder called sharpcraft.
 
2:29 PM
You need to use Start game windowed (debug).bat
With debug, you get the debug window
Which is actually quite powerful.
 
ok, the window stays there, but i guess the old plugin files werent loaded although i put them in the same place like before: "...\SharpCraft\plugins*.cs"
 
Do you get any errors?
 
no, but there are much less info than before: pastebin.com/0QpYBnBU
ah, let me check that: i will delete the DLL files and see if they get recreated automatically
 
Oh I forgot ... You can't use plaintext plugins anymore. They need to be compiled now.
 
i need to compile from cs to dll?
 
wew, ok, first hurdle... is there an easy way to do this without any additional software or should i install visual studio now?
 
It would be best if you just get Visual Studio.
 
I might add back plain-text plugins later.
But it was a hassle to keep the compiler happy.
 
and how do i proceed afterwards? i guess i have to copy the source code from your latest release anywhere to the visual studio folders...
 
2:38 PM
Nope
You just need to reference the SharpCraft.dll
I'll guide you once you have Visual Studio installed.
I'm sorry that you have to do this, but in the end, it'll be a lot easier. :P
I promise :P
 
no problem, as long as you can help me everything is fine ;) i will use a proxy for this shortly, will be back soon
k, downloading now
k, downloaded, going offline shortly to install it
 
3:28 PM
ok, took a bit longer, also i had to visit toilette, but now everything is ready :)
 
opened the input.cs plugin
 
Just a sec. I'll create a quick project for you to use. :)
 
yes, ok, i have no idea what to do now, thx.
 
3:38 PM
ok, done.
 
is this just an empty project? i guess not
 
Yeah, it is, but it's configured a bit and has something called "contents.xml" which you need for your plugin.
You should see a list of files on the right side of Visual Studio correct?
 
yeah, the solution explorer i guess (installed german version)
 
Yeah
Do you see contents.xml?
 
3:42 PM
yeah, opened already :)
 
Alright
You see the references to the other plugins
 
in the contents.xml? yes, sth like "<reference id="mindworx.warapi" version="1.0.0.0" />"
 
already wanted to shout out loud: why did i never saw this post? well, its from today :)
 
Hehe, yeah, just added it :P
 
3:46 PM
give me a sec, my desktop is overfilled with files
 
ok, got it
decompress?
 
No need
Just throw them in the plugins folder.
If the folder isn't there, just run SharpCraft once.
 
ok
wew! if i run "Start game windowed (debug).bat" now, i get a huge list of errors.
 
Ohh
You need to download the latest version again :P
There was an issue with the zip loading
Should have build 135b
 
3:54 PM
aj, had ...133
ah, now the debug prints information similiar to 1.2.4.0 without errors
 
when i use "Start game windowed.bat" theres no console window like it was in 1.2.4.0, is this normal behaviour?
 
Ye
The debug window is what you use now :)
It even features an expression parser.
If you type 1+1 and hit enter, it'll give you the result :P
It's even more complex than that, but it's still experimental.
 
omg :)
 
Actually
There's a few steps involved, so I'll just make a more complete package for you, if that's alright?
It's easier than guiding you :P
But I'll create a tutorial later.
 
4:00 PM
yea, for the start its absolutely okj
anxious to test it
 
That should get you started.
Use the SharpCraft included.
If you build the project, it'll automatically copy into the plugins folder.
I have to go and wont be back for a few hours, sorry, but I'll give you a ping when I'm home.
 
kk, thx
 
But basically, you just write your code, hit Ctrl+Shift+B to build, and then use the included SharpCraft to test your plugin.
 
maybe im already sleeping then (tired), but i will test this now for at least 2 hours
 
 
2 hours later…
6:11 PM
because my intellisense randomly stopps working, i deleted the "SourceSeeker.SyncedInputAPI.v12.suo" like suggested here: stackoverflow.com/questions/21471887/…
it seems intellisense works now, but the file didnt get recreated...
dont know if this matters
 
6:23 PM
my code gets triggered twice....? here's what i have so far: pastebin.com/qcq5R2tP
 
6:40 PM
ah, i cant stand any longer, must sleep now. good night.
 
7:24 PM
@SourceSeeker, It's called twice because it runs once for "common" and once for either "editor" or "game".
It's what the context variable is for.
Also, .suo files are just local user settings, so safe to delete. :)
You need to do something like if(context == PluginContext.Game) { }, to only run your plugin with the game.
If you don't have that, your plugin tries to load even in the editor :P
Also, base.Initialize(context); isn't important in this code, it's just auto-created.
Also, OnGameLoad is just an initializer that is called when the game.dll has been loaded. It's used for some systems.
 

« first day    last day (28 days later) »