Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New mechanics and functions for TravianC (Travian Crazy) and refactoring #524

Open
12 of 70 tasks
velhbxtyrj opened this issue Apr 11, 2018 · 23 comments
Open
12 of 70 tasks

Comments

@velhbxtyrj
Copy link
Collaborator

velhbxtyrj commented Apr 11, 2018

Other Improovements

@velhbxtyrj
Copy link
Collaborator Author

@iopietro @Shadowss In this issue I collected everything that was labeled by the label "enhancement". Some problems are duplicated with the previous open problem of bugs. Something like this :)

P.S. I think it will be easier to see all that is open at the moment in all issue.

@iopietro
Copy link
Owner

Nice, great job :)!

@velhbxtyrj
Copy link
Collaborator Author

@iopietro Pay attention to this issue #402. I guess that it is already implemented?

@iopietro
Copy link
Owner

Yes, i already fixed it in a previous commit, i forgot to mark it as closed.

@eliopinho
Copy link

well this is a good prespective.

but i think in my opinion this "travianC" must be an option in the install, like travian official quest vs travianZ quest.

also i think in first rule must be fix all "oficcial" game bugs and associate all translations to one file, for the other people like me for example, can translate the whole game into native languages and add here to be included in this version.

after the whole oficial game was tested and bugless keep working on that extra functions leaving to admin the choice off active them or not..

the big percentage off players here only want put the oficial game working fully and play with friends on a small server..

this only my opinion :)
thanks to all people working here , in special @iopietro for new blood and doing most weight work

@velhbxtyrj
Copy link
Collaborator Author

@eliopinho As far as I understand it correctly, it will be an ordinary TravianZ with the ability to include one or another function that will expand the possibility of the usual version) From the box this script should come with the functionality of the usual T3.6 travian.

@iopietro @Shadowss Some things like here and in another similar issue with bugs have both things that extend functionality and that relate directly to the usual version of T3.6. I propose to review these two issue and the gap in the separate things that complement the functionality and should be included separately and the things that are bugs.

P.S. I hope that Google correctly translated what I wanted to express in my thoughts :)

@iopietro
Copy link
Owner

iopietro commented Apr 13, 2018

@eliopinho @velhbxtyrj, Yeah, I agree, new functions should be separated from bug fixing, that's why I'll first try to fix all bugs of this version and then start to add new functionality to the game (and the admin of the server will be able to choose what functionality activate and what not).

Current "road map":

  1. Fixing all bugs of this version.
  2. Completely refactoring the game with OOP and maybe MVVM (MVC) and optimizing the code/queries.
  3. Adding new functionality to the game.

@velhbxtyrj
Copy link
Collaborator Author

So I'll do it today. Then we will have the information even clearer.

@iopietro
Copy link
Owner

Thanks :).

@velhbxtyrj
Copy link
Collaborator Author

I just do not remember about the vacation mode. Was it implemented in T4+? Transfer it to refactor or leave it in bugs?

@iopietro
Copy link
Owner

If i remember correctly, it wansn't in the T3.6 version, they introduced it in the T4.2/T4.4, you can transfer it.

@velhbxtyrj
Copy link
Collaborator Author

I hope that I transferred everything to the places where it should be.

@Shadowss
Copy link
Collaborator

Peace system picture message :

https://user-images.githubusercontent.com/5437151/38741765-96f7a462-3f32-11e8-90ee-20149b1ae3f4.jpg

Artifact system picture message :

https://user-images.githubusercontent.com/5437151/38771387-5c1b3884-401a-11e8-95f2-06599cc08b14.jpg

@velhbxtyrj
Copy link
Collaborator Author

@iopietro @Shadowss I delete some of the items here, since they are duplicated in another issue and refer to bugs:

  • On village name , you must leave players to put special chars like : 00. KILLUϺINA†I (i mean : , . †)
  • Add oases to select (50 , 100 or 150%) in crop_finder.php
  • Also this is a good map to add in Admin Panel FOR THE ARTEFACTS DISTRIBUTION , like already exist map in Admin Panel
    b4629f56bf5b0a48c18eb23a69ebd6fb

@iopietro
Copy link
Owner

You did well :).

@velhbxtyrj
Copy link
Collaborator Author

@iopietro I tried to make the activation and deactivation of oases in the profile of the player using the admin and during the installation. During installation, everything works fine. Recording is off. Going to the admin area, I can only turn on (after saving, the entry is deleted from the config file). It can not be turned off (writing to the file is not specified at all). I've been trying to break it down for a few hours and still have not. Could you see what's wrong with me? Here are all the files:

On the newly installed server, everything works fine. Everything turns on and off. Why can not this be done on the old server? And still, I ask you, if you have free time, to view these files for errors.

Display oasis in profile.zip

default
1
2
3

@iopietro
Copy link
Owner

I think that because old servers don't have it written in the settings, I'll look carefully those errors.

@velhbxtyrj
Copy link
Collaborator Author

But I independently registered this parameter in the config. And after I tried to change it, this record just went away and in the game it's always on. Even if it's disabled in the config, and change any other partition, then the entry is also deleted and becomes always on.

I also noticed that if we have an old server, then for this to work it is necessary for us to add the record by ourselves on this path and everything will work as expected (file is called constant_format.tpl): https://github.com/Shadowss/TravianZ/tree/master/GameEngine/Admin/Mods

In this code, the file is now missing constant_format.tpl. But when the server is installed then this file is available on the server and when I registered the same entry in it as in this file https://github.com/Shadowss/TravianZ/blob/master/install/data/constant_format.tpl everything started working as and expected.

It can be what that error that record there did not get automatically during configuration of settings? Or is it necessary to write to this file yourself for the code to work on the old server?

@iopietro
Copy link
Owner

I do think so, constant_format and all files of the admin panels that edit config.php should be edited.

@velhbxtyrj
Copy link
Collaborator Author

So it turns out that I did everything right. Today, I edited the files a little bit more that would eliminate fatal errors while editing other configuration sections. Can it make sense to try to unite these files here?

And one more thing about this. I created the second profile file (old file overview.tpl and new file newOverview.tpl). What is the best solution in this case? Leave one file and in it to do a conclusion of the different information or it will be better two different files?

@iopietro
Copy link
Owner

iopietro commented Jun 20, 2018

Yep, it makes sense, it can be optimized by merging those single files in a unique one.

It would be better leaving only one file with an "if" that decides (by confronting the constant in the config.php file) if oases should be showed or not.

velhbxtyrj referenced this issue Jun 26, 2018
+Enable (Disable) New forum post message
+Enable (Disable) Tribes images in profile
+Enable (Disable) MHs images in profile
+Enable (Disable) Display artifact in profile
+Minor changes

NOTE 1: To play this version of the game, you need to reinstall
the server OR you can simply add these lines of code into your file:
ameEngine/config.php

define("NEW_FUNCTIONS_FORUM_POST_MESSAGE", False);
define("NEW_FUNCTIONS_TRIBE_IMAGES", False);
define("NEW_FUNCTIONS_MHS_IMAGES", False);
define("NEW_FUNCTIONS_DISPLAY_ARTIFACT", False);

GameEngine/Admin/Mods/constant_format.tpl

define("NEW_FUNCTIONS_FORUM_POST_MESSAGE", %NEW_FUNCTIONS_FORUM_POST_MESSAGE%);
define("NEW_FUNCTIONS_TRIBE_IMAGES", %NEW_FUNCTIONS_TRIBE_IMAGES%);
define("NEW_FUNCTIONS_MHS_IMAGES", %NEW_FUNCTIONS_MHS_IMAGES%);
define("NEW_FUNCTIONS_DISPLAY_ARTIFACT", %NEW_FUNCTIONS_DISPLAY_ARTIFACT%);

NOTE 2: pay special attention to the fact that these are two
different records !!! If the records are entered incorrectly,
you will receive a non-working code!
@velhbxtyrj
Copy link
Collaborator Author

@iopietro I found three commits (more precisely I hope that it is those commits that changed the logic of the alliance):
Shadowss/TravianZ@5d91de0#diff-f43cd9959fc7f6c0f8e1e43a8b034792
Shadowss/TravianZ@c9038e2#diff-f43cd9959fc7f6c0f8e1e43a8b034792
Shadowss/TravianZ@8a3591a#diff-f43cd9959fc7f6c0f8e1e43a8b034792
where the logic of the alliance was changed https://github.com/Shadowss/TravianZ/wiki/New-Alliance-&-Embassy-Mechanics

But for me it's a little incomprehensible that I would make a division into old code and a new code to enable and disable as a new function.

I could take the old code and add it to the if else:
if() {
new code
} else {
old code
}

but it seems to me that this will be wrong and can cause some errors that could be corrected or something else.

@iopietro
Copy link
Owner

iopietro commented Sep 5, 2018

For now, I removed it in the refactored version, but it'll be rewritten from scratch later.

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

No branches or pull requests

4 participants