Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Jump Gate shows no targets #89

Closed
terassiel opened this issue Nov 1, 2015 · 6 comments
Closed

Jump Gate shows no targets #89

terassiel opened this issue Nov 1, 2015 · 6 comments

Comments

@terassiel
Copy link

The Jumpgate shows no target Jumpgates. It doesnt matter if the jumpgates are in the same galaxy or not, no possible target gates are shown.
All files with the latest changes, no custom changes. Error log shows nothing.

@terassiel
Copy link
Author

I fixed it and added a reduction for the recharge time.

@jkroepke
Copy link
Owner

jkroepke commented Nov 3, 2015

Thanks, I got your mail.

@jkroepke jkroepke reopened this Nov 5, 2015
@jkroepke
Copy link
Owner

jkroepke commented Nov 5, 2015

I will close it, if the patch is applyed.

@Jbaukens
Copy link
Contributor

I fixed the appaerence of the jumpgate but when i try to jump i get this error

Message: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

Query-Code:UPDATE uni1_planets SET big_ship_cargo = big_ship_cargo - 2, light_hunter = light_hunter - 100, last_jump_time = 1450920278 WHERE id = 25;

#1 /includes/pages/game/ShowInformationPage.class.php(123): Database->update('UPDATE %%PLANET...', Array)
#2 /game.php(68): ShowInformationPage->sendFleet()

@OzanKurt
Copy link
Contributor

It's about the PDO parameter bindings. Can you please provide the code?

@jkroepke
Copy link
Owner

See here: https://github.com/jkroepke/2Moons/blob/master/includes/pages/game/ShowInformationPage.class.php#L118

Problem is that the subquery is a PDO parameter. This is wrong here. It must be like here:

$params[':'.$resource[$Element]] = '1';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants