Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Atlantis (https://forums.graalonline.com/forums/showthread.php?t=134267580)

Crow 12-17-2012 10:26 AM

Atlantis
 
1 Attachment(s)
As promised, here is most of Atlantis' code and some other resources you can use. Keep in mind, anything that is not included in this package which is content of Atlantis, you are not allowed to use on your playerworld.

A couple notes:
  • The baddy code is not included, since it was a mod of Gambet's GBaddy (which can be found in the Code Gallery as well) and was rather hackish in its whole nature; nothing to learn from, really.
  • Due to Stefan's optimizations on tile update stuff, when "removing" objects such as bushes, stones and the like, the tile changes below may disappear again before the object actually respawns. You can actually fix this by changing the updateBoard() calls in the object class to update 3x2 instead of 2x2 tiles.
  • I removed all (I guess) cheat detection code, since it's generally not a good idea to make things like that public. Wasn't anything fancy anyway, but still..
  • Yes, I did shamelessly copy the basic ideas of Era's staff tools. They're good!


No guarantee for good code. There are also probably a few bugs here and there. I'm not providing any more information right off the bat. If you need help or have any questions, please ask them in this thread. No PMs if it's not about anything critical.

Thank you.

callimuc 12-17-2012 05:17 PM

must spread reputation :(

Crow 12-17-2012 05:30 PM

It's not like I need that. I am happy as long as some of this can be of help to someone, be it directly or indirectly.

Emera 12-17-2012 05:32 PM

Oh wow. This is fantastic. +rep

callimuc 12-17-2012 05:55 PM

well it really is fantastic. cool things being included to work with the default movement rather than creating a custome one.
can most likely help me with some things so i dont have to create a custome one :)

scriptless 12-17-2012 06:05 PM

Looking forward to seeing this on N-Pulse.. because I'll bet anyone it happens.. LOL

Crow 12-17-2012 06:11 PM

Quote:

Originally Posted by scriptless (Post 1709745)
Looking forward to seeing this on N-Pulse.. because I'll bet anyone it happens.. LOL

If it helps, it's good. I'm not just releasing this for craps and giggles. I hope no one is being looked down on for using this, because that's really not right.

scriptless 12-17-2012 06:17 PM

Quote:

Originally Posted by Crow (Post 1709746)
If it helps, it's good. I'm not just releasing this for craps and giggles. I hope no one is being looked down on for using this, because that's really not right.

I know, im just predicting the future.. hopefully they don't end up taking stuff that's not public use tho.. like they keep doing to Dusty.. he just the other day yelled at them... again ... seems telling them no doesn't stop them

Atlantis will be missed, it looked so promising. I really wanted it to go public so I could play it.. First time I saw the server it was in another language, not sure if it ever became English?

callimuc 12-17-2012 06:19 PM

Quote:

Originally Posted by scriptless (Post 1709747)
another language

german :P
regarding the textbox script, they wanted to use graals translation thingy

Crow 12-17-2012 06:21 PM

Quote:

Originally Posted by callimuc (Post 1709748)
regarding the textbox script, they wanted to use graals translation thingy

Indeed. Plan was English + German. Not sure if N-Pulse's bush is really taken from Dusty though, might really just be a LttP remake; we'll see. If they take any graphics from Atlantis, I'll know :p

scriptless 12-17-2012 06:23 PM

Quote:

Originally Posted by Crow (Post 1709749)
Indeed. Plan was English + German. Not sure if N-Pulse's bush is really taken from Dusty though, might really just be a LttP remake; we'll see. If they take any graphics from Atlantis, I'll know :p

Alot of time they would tell me if they changed the color's around it was not copying.. it really looks like Dusties remake of lttp tho..

But your saying that the Graal Translation didn't work? And how does that work exactly? Is it some sort of scripting for translation or doe's graal attempt to translate it all itself ?

Crow 12-17-2012 06:26 PM

Quote:

Originally Posted by scriptless (Post 1709750)
But your saying that the Graal Translation didn't work?

I did? I don't think so :p It does work. You just provide all translation files, and if it can't find any for the selected client language, it will default to the original input text. I can provide more details on the system later, bit busy right now.

callimuc 12-17-2012 06:29 PM

Quote:

Originally Posted by scriptless (Post 1709750)
Alot of time they would tell me if they changed the color's around it was not copying.. it really looks like Dusties remake of lttp tho..

But your saying that the Graal Translation didn't work? And how does that work exactly? Is it some sort of scripting for translation or doe's graal attempt to translate it all itself ?

well you can have a translation by doing something like
PHP Code:

echo( _("hello") ); 

which would translate it into the clients language being set (i think changeable through the f3 options but im not sure since i have only been using this on iEra even though the translations are never updated)

im not too sure if there are any guidelines for uploading the translations, but in case you want to see how the file would have to look like, simply check your graal folder - levels - translations and open one of those .po files with a text editor

scriptless 12-17-2012 06:34 PM

callimuc, threw you some Rep ++... thanks for the information, it is very useful. crow, I think I rep you to much also.. lmao because ALOT of people I cannot rep... fccmike, crono, u, dusty... i mean wow I must rep ++ alot.. xD

Quote:

Originally Posted by Crow (Post 1709752)
I did? I don't think so :p It does work. You just provide all translation files, and if it can't find any for the selected client language, it will default to the original input text. I can provide more details on the system later, bit busy right now.

Sorry read wrong post, I was reading how callimuc said "they wanted to" and assumed that it was saying it didn't work.

That's neat. Tho does graal have languages anymore?

Edit: It does.. didn't it used to be on the first screen that poped up where you entered in your login info?

Crow 12-17-2012 06:38 PM

Quote:

Originally Posted by scriptless (Post 1709754)
Edit: It does.. didn't it used to be on the first screen that poped up where you entered in your login info?

Yup, that's where it was. This is the folder config stuff for translations on Atlantis:
PHP Code:

file    translations/*.po
file    translations/en/*.po
file    translations/de/*.po 

I believe clientside translation files were put into levels/translations/*, and serverside ones in their respective sub folders. Then, in the server options, we have this:
PHP Code:

serverlanguage=en
defaultlanguage
=en
translatedlanguages
=de 

Finally, in a system WNPC (file names for translations were atlantis_en.po and atlantis_de.po, and just atlantis.po for serverside ones):
PHP Code:

loadTranslation("atlantis"); 

The rest of the magic is done by Graal and the _() function.


All times are GMT +2. The time now is 02:44 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.