• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Castro AAC

Some small updates.

I am planning to create some sort of forums for the AAC but I am not really sure if it is needed. I also made the popular PHP outfitter in Go for the AAC

iKbhxHc.png


I still need to fix the colors but hey. It works
 
Thanks

Progress is paused till 22 caused by examns. :^)
 
No more exams!

I added https support. I havent seen a single OT with http except for shadowcores... why no love for ssl =(

Also I tried making a new signature image for the characters page but it was as ugly as the one I am using right now
 
Very cool with writing pages in LUA and acc in Go. Ambitious people bring fresh ideas to Open Tibia. That's great. ;) I know how complicated it's to create acc and how much time it consumes, so I don't wish you good luck and finishing this - instead I want to say thank you for your time and engagement you've already put in this as volunteer! :)
 
^Thanks. I think tho what might push users off is the layout. Its ugly.

I hope I can fix that on a near future :
 
I added https support. I havent seen a single OT with http except for shadowcores... why no love for ssl =(
gunzodus.net, theoxserver.com, masiyah.se, highexp.eu.. Just a few i know xD It is actually a lot of OT's that use SSL.

Good luck/work with the AAC! :)
 
gunzodus.net, theoxserver.com, masiyah.se, highexp.eu.. Just a few i know xD It is actually a lot of OT's that use SSL.

Good luck/work with the AAC! :)

Looks like I need to play more ots =(

---

Small update. Made a config lua parser and a small server information page (using config lua values. nothing hardcoded)

3IdEczo.png
 
Last edited:
Another small update comming in.

I added commands to the aac (handy for development) using a very simple interface so you can develop your own commands

(example from reload template command)

Code:
type reloadTemplate struct {}

func init() {
    commands.Add("reload template", &reloadTemplate{})
}

func (r *reloadTemplate) exec() {
    template.Load()
    log.Println("Template loaded")
}

8R8jpjB.png


I also added in-memory cache BUT redis cache is also planned

--- Update

Stages are also implemented =)

LoVoM-f.png
 
Last edited:
I implemented a simple cache system

Code:
pigo.Cache.Put("articles", time.Minute, interface{})

The AAC is almost done. the LUA is finished, all the pages are finished except for the admin panel all parsers are done

  • monsters.xml and subfolders
  • items.xml
  • stages.xml
  • vocations.xml
  • config.lua
So yeah will update this soon with more information
 
If OTHire uses an schema like TFS it should work. if not then your only option is to change the querys of the cloaka models
OTHire schema is pretty much like the TFS 0.3 if I remember correctly.
 
So I am making some community pages using the lua bindings, not the final stage they still look a bit rusty and hard (specially the query tables) but here is a small preview of how a "latest death" page would look like

Code:
local deaths = query("SELECT a.name, b.time, b.level, b.killed_by, b.is_player FROM players a, player_deaths b WHERE b.player_id = a.id")
local total = query("SELECT (SELECT COUNT(*) FROM player_deaths WHERE is_player = 0 AND mostdamage_is_player = 0) AS totalDeaths, (SELECT COUNT(*) FROM player_deaths WHERE is_player = 1 AND mostdamage_is_player = 1) as totalFrags")

base["Data"]["Deaths"] = deaths
base["Data"]["Total"] = total[1]
base["Template"] = "deaths.html"

And the layout would look like

Code:
[[ template "head_start.html" ]] [[ template "head_end.html" .logged ]]
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Activity</h3>
    </div>
    <div class="panel-body">
        <p>There are a total of [[ .totalDeaths ]] deaths and [[ .totalFrags ]] frags</p>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>At</th>
                    <th>Name</th>
                    <th>By</th>
                </tr>
            </thead>
            <tbody>
            [[ range $element := .Deaths ]]
                <tr>
                    <td>[[ luaUnixToDate $element.time ]]</td>
                    <td>
                        <a href="/character/view/[[ urlEncode $element.name ]]">[[ $element.name ]]</a>
                    </td>
                    <td>
                        [[ $element.killed_by ]]
                    </td>
                </tr>
            [[ end ]]
            </tbody>
        </table>
    </div>
</div>
[[ template "footer_start.html" ]] [[ template "footer_end.html" ]]
 
Last edited:
So I have been working on an OTBM parser for the AAC to get house images. Nothing fancy only how the structure works (color pixels only) and here is the result

WxwMMTB.png


This is an example of a guildhall parsed with the AAC. The size of course will be bigger in the website I am not sure about the colors... The door entrance is red but the yellow floor doesn't look that good

C-iPjwz.png


The door is always at the centre of the image and it its fast. I skip all the non house tiles from the map

What do you guys think? if the layout is white the images will look bad and hard to see imo
 
Woah, I just read every comment on the thread beacuse your AAC is so good, keep up the good work!
 
I forgot to say that towns are now loaded from your map... So yeah you dont need to configure them on the aac anymore <3
 
It could use default minimap colors: red - walls of house, yellow - could be for doors and grey - for the floor.
 
Back
Top