Jump to content

Chabadarl

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Chabadarl

  1. thanks... I knew I forgot something obvious.... I meant to write... local candidate1 is data:copy. //data is a list. local candidate2 is data:copy. the code is slighty changing data to test for improvement. and hill climbing to the best solution...
  2. I'm testing to improve a trajectory by small step and it's seems that this does not work for whatever reason and it's getting me crazy. local index is 0. local candidates is list(). until index =data:length { local candidate1 is data. //data is a list. local candidate2 is data. PRINT "new". PRINT candidate1[index]. PRINT step. PRINT candidate1[index] +step. //this works fine. set candidate1[index] to (candidate1[index]+step). //this doesn't work set candidate2[index] to (candidate2[index]-step). //this doesn't work PRINT candidate1[index]. //value has not change PRINT candidate2[index]. candidates:add(candidate1). candidates:add(candidate2). set index to index +1. } I'm posting here in desesperation. It's probably a syntax error but I don't understand why the set to doesn't work in this case....
  3. A vessel is a Orbitable so it has the element of this structure. https://ksp-kos.github.io/KOS/structures/orbits/orbitable.html That should be the same: PRINT (SHIP:ALTITIUDE - SHIP:GEOPOSITION:TERRAINHEIGHT). PRINT ALT:RADAR.
  4. Kos can take input from user but not replace it. Krpc is what you need i think. There is no option i know of to trigger precision control but you can tweak the pid parameters of the steeringmanager (see the docs) to achieve what i think you want to do...
  5. If the return is serializable, you can also write it as a json file. Create a function like that inside your program to call. function lookforpath(){ log "" to "1:/templookforpath". deletepath("1:/templookforpath"). runpath("My Programm"). set MyReturn to readjson(1:/templookforpath). return MyReturn. } And add a : writejson(<whatever variable is your path>,"1:/templookforpath"). at the end of the program that create the path I have not tested this particular code and wrote it in notepad, so expect a mistake or two but the principle works (I used it to handle persistance of variables trough reboot).
  6. I guess acc is for acceleration. You probably need a accelerometer for the script to work.
  7. @kcs123 http://ksp-kos.github.io/KOS_DOC/general/volumes.html#naming-volumes The 1:/ volume always correspond to the volume on which the cpu is running. (As the 0:/ is always the archive) Only the 2:/ (or higher) volume can be different from a CPU to another. http://ksp-kos.github.io/KOS_DOC/commands/files.html#copypath-frompath-topath New file will be created at TOPATH, along with any parent directories if necessary. Its contents will be set to the contents of the file pointed to by FROMPATH.
  8. I think everything has already been said, but I will add a few tips anyways: - Start with scripts that are linear and and handle small tasks.Then go on until you feel frustrated and want bigger problems. Object oriented kind of coding (like Java) should come second. - Never assume you have mastered something. There is always a angle from which you have not look your code ( security, performance ...) - VBA is underrated and being able to produce macros for excel is a powerfull competence if you work in a desk environment. - https://www.codingame.com/start not a place to actually learn to code. but you find challenge to gradually test your skills in a manner that will keep you interested and motivated...
  9. Nasa has put some 3D models (over the years it seems) on github. Does anyone has used it in their mod ? Is the conversion easy/even possible into unity 3D models ? https://github.com/nasa/NASA-3D-Resources
  10. Tag me in your thread, I have thought about that a bit, but I'm way too lazy to start it.. (It took me two years just to sign up to the forum)...
  11. This is not an issue for me, I want to be able to unlock the tech tree before leaving the Kerbin system...
  12. That could be a new forum's game thread : Mars Cluedo. The "murderer" has killed the "victim(s)" using "the weapon of choice" in "the location of the murder". Ex: Jeb has killed Bill with a KAS strut in the VAB. The pilot has killed everybody brutally venting the lifespace Module. Valentina has killed Jeb firing a septatron splashed down in the moutains...
  13. No, the energy to modify the trajectory will increase exponantionnaly as you approach the earth, becoming soon impossible to deviate with an ion thruster. You are going to precise as love at the very beginning and then you will have to use your thrust to try to correct your orbit to make sure you strike the right place at the right moment... or your 2 megatons will strike anywhere on earth. The negociation will be fun too... "Hey! We have a cease fire agreement" "Yes we do... but you are going to be strike next week anyway...."
  14. Are you from the NRA ? Giving people gun is the very first thing that can make people murderers.... I really don't see the point of using criminals when you will find over-competent, multi-skilled and very motivated contributors that are willingly going up there. This is not a colony to Australia or America where dozens will die during the trip because of diseases or starvation with no hope to ever see or communicate with the ones left behind and you will not need a large number of colonists to ensure your domination on the land you have conquered for your crown....
  15. Sorry, you are right of course. What I meant, is that the reaction force will be always outwards the sun. But indeed you still can go anywhere...
  16. Solar panels has a reaction effect too... If you replenish electricity fast enough to be used in a photon reactor, that's mean you cannot ignore this effect... Basicaly you have a photon sail but heavier (by a lot) and with more energy loss... So you will mch slower (but you can go in any direction, when photon sail allows you to go outwards the sun)
  17. And I say that some people will become criminals to go to Mars, even if it's a hard labor job...
  18. Ohhhhhhhhhhhhhhhh... You know that some people will do random crimes just for the chance to have a ticket on your mission ? This is not the 19th century anymore : just make a television show, lots of people will come at the casting. Audience will be on top, especially with the risk of operation you are willing to take. You may have some legal issue but I can't think of a court that exend its juridiction to Mars. Why not better tools ? Which makes the need of power very relevant.On Mars, the gravity is a third of what we feel on Earth. The efficiency of pickaxes and shovels will be lowered by a lot. You can tried to dig in the flank of a hill and then cover the wall inside but it's long, difficult and risky (Mine accidents are still an everyday situation). The other solution is better: - Land - Inflate all modules and construct your base with some possibilities of extension for the future. - Cover the whole thing with dirt. A small team can operate the robots needed to start building the station and install the machinery as soon as their needed. Next trips will allow your base to grow with more modules and new migrants will be installed in fully fonctionnal and fully protected modules. To add in some extent to the crazyness: -A machine that extracts the Oxygen and Hydrogen from the water, for people to breathe and to use for liquid oxygen for the return mission. Also, storage tanks. You can stock the hydrogen for fuel cells. I think it will be ligther than bringing a nuclear powerplant and way lighter that any form of battery.
  19. http://www.esa.int/Our_Activities/Space_Engineering_Technology/Building_a_lunar_base_with_3D_printing Here is some inspiration. The european space agency has a very serious plan to build a moon base with 3D printer drones. They already have a proof of concept prototype. shovels and pickaxes I'm sorry to admit I laugh at that... Check the next schedule of extravehicular activity on ISS, and watch the live feed to get the idea of how hard it is to work on vacuum environnement.... Just a reminder it takes several hours, just to prepare yourself for EVA.
  20. Considering what it took to the NASA for mastering this art, I said nobody should be ashamed to think the first attempt is a 9. After a dozens, some good reflexes simplifies it by a lot. And there is that time when you imagine that septraton is the way to go to accelerate the manouver.
  21. I start with 5000 sciences to unlock the two first tier of tech. I started too much career game, I don't find the five exploration of KSC in rover to gather the science to go un lock the science instrument, fun anymore.... The money (and remote tech and TACLS...) is what stopping me to go directly to Duna or Jool.... I used Strategia and specifically the strategy To Bodly go (give money for science in a new bime) to make sure that I'm still motivated to go everywhere...
  22. The Kims : you can micromanage the life of your kerbals. StarKraft : Legacy of the Kerboid Koom Jeb Nukem 4k
  23. Is that a new setting on 1.2 or did I miss something? I will love that. While I am here, I suppose I can share my settings: I play with Remote Tech to slow down my unmanned expansion and with TACLS to limit my manned explosion... I start with 5000 science. I limit the science reward to something between 50 or 70%. So unlock first tier instantenously. I get some basics contracts and first stone and unlock the second tier with almost all of its tech nodes. I used to diminish the reward for money too. But as I tend to restart a new save often, I don't want to be slow down too much by money so I can rapidely take big projects. Then I start expanding trough the system taking contracts to finance my madness plans for Kerbanity and having a hard time unlocking the last tier because I lack science rewards.... This setup makes me fell like the modern space compagnies. The basic tech is available nowadays but funds and high tech is the graal... Then it's a question of imagination for big project... I will transform a planet into a farm for 1.2.... with as much greenhouse as possible to make sure no kerbal will suffer from hunger again...
  24. A bomber flight over the hills. Nuts, acorns, wallnuts, chestnuts fall from the sky..... My forest! In a few hundred years... I guess. Damn it.
×
×
  • Create New...