alaingilbert/ogame

Send-fleet command says invalid ship id

antal-kajzer opened this issue · 3 comments

hi my friend!

I just tried to send 1 small cargo to my planet, but the command says, invalid ship id.

command: curl -X POST localhost:8080/bot/planets/33628320/send-fleet -d 'ships="202,1"&speed=10&galaxy=2&system=298&type=3&position=8&mission=4&metal=1&crystal=2&deuterium=3'

I've checked the ids at:

SmallCargoID ID = 202 // Ships

Could you please help me about that?

I think the double quotes are causing the issue. There should be no "

Ahh, yes. That caused the issue, thank you!
In this case, could you please fix the comment at

// curl 127.0.0.1:1234/bot/planets/123/send-fleet -d 'ships="203,1"&ships="204,10"&speed=10&galaxy=1&system=1&type=1&position=1&mission=3&metal=1&crystal=2&deuterium=3'
?

The issue was: Incorrect command parameter format