sidereal6 Posted April 29, 2015 Report Share Posted April 29, 2015 What I mean by "workflow" is like, what steps do you take in developing and testing a script? The way I go about it seems very convoluted and slow. I'm playing around with Wicked AI and what I have to keep doing is this: - disconnect and quit Arma - stop the server (I keep a remote desktop session open to it) - check RPT file if needed (although I have it tailed in another window) - make a change to a script (I use sublime text to get syntax highlighting) - save script, click batch file to pack PBO and copy to addons dir (I realize I could automate that in sublime text) - back to remote desktop. Start server. wait. - start arma. wait. wait. @$%# wait. - see that I've done something wrong. Return to step 1. I bet there's some super fast in-game editing that I don't know about, right? Link to comment Share on other sites More sharing options...
0 Guest Posted April 29, 2015 Report Share Posted April 29, 2015 I have got the Server RPT kinda allways open and and in DayZ Launcher Settings i selected "Show Script Errors". So if anything is not working, i can immediately see why and solve it (most times). I also like adding Debug Points to completely new scripts, just in case it's not working as expected. So i just add "diag_log "breakpoint 1";" or something simular to the file. Link to comment Share on other sites More sharing options...
0 Gr8 Posted April 29, 2015 Report Share Posted April 29, 2015 I do all my edits at my PC, push it in github > Run a batch script that takes the script, packs it, throws it in the server and starts it > Start up the server > Join The key is to never closing the game, and just quit the mission (if possible ofc) which boosts the loading time next time you join. Link to comment Share on other sites More sharing options...
0 raymix Posted April 30, 2015 Report Share Posted April 30, 2015 MP: disable signature verify and play with code using debug console on a live local server. SP: notepad++, save script, reload editor mission... takes about a second on SSD and VR map. Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted April 30, 2015 Report Share Posted April 30, 2015 just fyi, you can execute any script locally from your arma 2 oa folder and infistar antihack has a build in debug console in a2 you can open with shift + tild then execute any code you like, server side, globally or locally. ... if you do not have infistar antihack, i did see a script somewhere that can open a debug console and execute code for you locally. just remeber that you cannot suspend in the console, so any sleep or waituntil or whatever has to be spawn'ed or run from script and running code on the server live can cause crashes in some cases (even for errorfree code). SchwEde 1 Link to comment Share on other sites More sharing options...
0 SchwEde Posted April 30, 2015 Report Share Posted April 30, 2015 holy sh*** that one is a real blessing for testing. Will try this out. If this really works that simple that would be awesome :D EDIT: I would kiss you for this info! THanks for this!!! Link to comment Share on other sites More sharing options...
0 sidereal6 Posted April 30, 2015 Author Report Share Posted April 30, 2015 Just found this: Epoch Admin Tools Haven't tried it out yet but it looks very helpful. Link to comment Share on other sites More sharing options...
0 axeman Posted April 30, 2015 Report Share Posted April 30, 2015 Oh, how many hours I have lost to restarting arma2 servers for testing :) get a console as arma 3 has, there are some good ones out there. Link to comment Share on other sites More sharing options...
0 raymix Posted May 1, 2015 Report Share Posted May 1, 2015 Oh, how many hours I have lost to restarting arma2 servers for testing :) get a console as arma 3 has, there are some good ones out there. pretty much a must ^ i can suggest my favorite for A2: http://www.armaholic.com/page.php?id=5773 Link to comment Share on other sites More sharing options...
0 sidereal6 Posted May 1, 2015 Author Report Share Posted May 1, 2015 Run a batch script that takes the script, packs it, throws it in the server and starts it Uh, would you care to share that? That sounds pretty cool. You have to convert .CPP files to .BIN too, right? There's a command line tool that does that and packs the PBO? Link to comment Share on other sites More sharing options...
0 raymix Posted May 1, 2015 Report Share Posted May 1, 2015 binpbo or cpbo can do that from cmd. I prefer pboProject for binarizing and pbomanager for quick packaging for testing. There is absolutely no need to binarize unless you aim for release and performance, so no - you don't have to convert. Link to comment Share on other sites More sharing options...
Question
sidereal6
What I mean by "workflow" is like, what steps do you take in developing and testing a script? The way I go about it seems very convoluted and slow.
I'm playing around with Wicked AI and what I have to keep doing is this:
I bet there's some super fast in-game editing that I don't know about, right?
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now