badosu Posted April 26, 2020 Share Posted April 26, 2020 (edited) Is it possible to send files on patch format to create a commit and for review on https://code.wildfiregames.com? Edited April 26, 2020 by badosu Link to comment Share on other sites More sharing options...
badosu Posted April 26, 2020 Author Share Posted April 26, 2020 (edited) Nevermind, I just found out I can attach to Trac, sorry for the noise. Also: My motivation is same as @crazy_Baboon, I find it much easier to operate using the git mirror Edited April 26, 2020 by badosu Link to comment Share on other sites More sharing options...
badosu Posted April 26, 2020 Author Share Posted April 26, 2020 First contribution: https://code.wildfiregames.com/D2710 2 1 Link to comment Share on other sites More sharing options...
nani Posted April 26, 2020 Share Posted April 26, 2020 Unfortunately (or not ) someone already uploaded a similar patch fixing the same issue (https://code.wildfiregames.com/D1587). You gotta check beforehand if an existing patch/trac issue already exist specially given 0ad trac record of bugs and patches on queue since 3+ years or so. Link to comment Share on other sites More sharing options...
asterix Posted April 26, 2020 Share Posted April 26, 2020 (edited) 2 hours ago, badosu said: First contribution: https://code.wildfiregames.com/D2710 Thank you for your contribution as said 17 minutes ago, nani said: Unfortunately (or not ) someone already uploaded a similar patch fixing the same issue (https://code.wildfiregames.com/D1587). You gotta check beforehand if an existing patch/trac issue already exist specially given 0ad trac record of bugs and patches on queue since 3+ years or so. It is duplicate try maybe to look at some of the simple tickets. Edited April 26, 2020 by asterix Link to comment Share on other sites More sharing options...
badosu Posted April 26, 2020 Author Share Posted April 26, 2020 Well, this is a straightforward fix to merge, it does not do much apart from what it's supposed to Link to comment Share on other sites More sharing options...
asterix Posted April 26, 2020 Share Posted April 26, 2020 9 minutes ago, badosu said: Well, this is a straightforward fix to merge, it does not do much apart from what it's supposed to @elexis @FeXoR Link to comment Share on other sites More sharing options...
Stan` Posted April 26, 2020 Share Posted April 26, 2020 20 minutes ago, badosu said: Well, this is a straightforward fix to merge, it does not do much apart from what it's supposed to Thanks for contributing btw! You can take over the other patch, by commandeering it Link to comment Share on other sites More sharing options...
badosu Posted April 26, 2020 Author Share Posted April 26, 2020 I need to verify its behaviour when sections of the disk are out of map boundaries, which the mentioned patch does. Link to comment Share on other sites More sharing options...
Stan` Posted April 26, 2020 Share Posted April 26, 2020 Just now, badosu said: I need to verify its behaviour when sections of the disk are out of map boundaries, which the mentioned patch does. You can also make adjustements to it Link to comment Share on other sites More sharing options...
badosu Posted April 27, 2020 Author Share Posted April 27, 2020 I dealt with allocations and map boundaries, I'd like to make and run javascript tests but wat not able to find in the documentation Link to comment Share on other sites More sharing options...
Stan` Posted April 27, 2020 Share Posted April 27, 2020 5 minutes ago, badosu said: I dealt with allocations and map boundaries, I'd like to make and run javascript tests but wat not able to find in the documentation You will need to compile the game for this. Link to comment Share on other sites More sharing options...
badosu Posted April 27, 2020 Author Share Posted April 27, 2020 Done, as far as I found only `binaries/system/test` is available Link to comment Share on other sites More sharing options...
Stan` Posted April 27, 2020 Share Posted April 27, 2020 You need to add a file to binaries/data/mods/public/maps/random/tests Like https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/maps/random/tests You have a few function called TS_ASSERT_* that will allow you to make sure things are working correctly. To write tests try to think of all the cases that should happen ( and sometimes should'nt) and make sure it goes as expected. Basically imagine the functions you wrote in the other file are used as black box. Link to comment Share on other sites More sharing options...
badosu Posted April 27, 2020 Author Share Posted April 27, 2020 Yes, that was my plan, but I ran `binaries/system/test --help-tests` and didn't find `test_RectPlacer` there. Anyway, I'll try and find out if it's running and just not showing, thanks! Link to comment Share on other sites More sharing options...
Stan` Posted April 27, 2020 Share Posted April 27, 2020 21 minutes ago, badosu said: Yes, that was my plan, but I ran `binaries/system/test --help-tests` and didn't find `test_RectPlacer` there. Anyway, I'll try and find out if it's running and just not showing, thanks! What OS are you on ? You might need DBGview for easier test debugging. (It will show the console output warnings and such) As for why you didn't see it it's because it's embedded in scripts (there is one big test for all the js) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now