sabato 17 marzo 2012

Collision detection challange

Me and the math are not friends, but now that I need some math equations to reach my scopes, finally I understand his importance. On last week I worked on some collision detection algorithms between circles and rectangles and after some reading of my high school books I found some solutions. Between rectangles simply I check the angle points: with a fast algorithms simply I compare 8 points (4 from the two rectangles). Between a circle and a rectangle the algorithms make a square that cover the entire circle and if the rectangle is inside this square, it checks if every pixel's border of the rectangle is on the circumference or inside the circle using the equation of the circle; I made this techniques to reduce the CPU use.

lunedì 12 marzo 2012

domenica 4 marzo 2012

E' tempo di mostrare i miei lavori

Da quanto eh?
Dalla release della traduzione di Kingdom Hearts II Final Mix ho smesso di svelare i miei più grandi lavori, ma credo che è tempo di mostrare qualcosa per ricevere vostre opinioni e commenti.
Subito dopo KH2 Final Mix ho cominciato a lavorare a KH1 Final Mix. Ho individuato come il gioco gestisce i testi e i font ed ho sviluppato le basi per visualizzare (quindi né estrarre né modificare) i testi del gioco. Questi sono inseriti nelle mappe e non in file singoli come KH2. Questo rende molto più complessa l'operazione di traduzione, dato che ogni mappa ha multiple copie di testi e necessito di individuare l'intero formato della mappa per poter spostare, allargare o diminuire le stringhe. Inoltre mi sono trovato in difficoltà nel ricompattare l'archivio KINGDOM.IMG, quindi ho deciso di lasciar perdere. Devo essere sincero, ci ho sbattuto per qualche settimana, ma non volevo cimentarmi nuovamente in ideogrammi e test anche perché l'inizio dell'Università ha tolto molto del mio tempo (questo è un annuncio ufficiale per il quale decido di non prendere i lavori per KH1FM). Ho continuato a fare ricerche su KH2FM per trovare il modo di non usare font riadattati e per coincidenza ho trovato un flag che permette di fare lo swap dei tasti O ed X, di abilitare il supporto ai salvataggi della versione americana (peccato che il caricamento fallisce), prova che il motore di gioco è basato sulla versione US. Ho continuato a lavorare a spezzoni su OpenKH, un engine che doveva permettere il caricamento di personaggi, mappe ed animazioni che però ho abbandonato per mancanza di conoscenze. Ho comunque una copia del progetto salvata in un server SVN privato, così se qualcuno un giorno ci vorrà mettere mani potrà farlo, a patto che mi contatti di persona (via mail possibilmente). Subito dopo ripescai un vecchio editor che sviluppai per Sonic 2. Vidi il codice, ciò che avevo combinato... Dopo 5 minuti mi dissi "spazzatura", così cancellai tutto e decisi di riscriverlo da zero. In pochi mesi sono riuscito a sviluppare un editor abbastanza potente che supportasse non solo la mappatura e l'editing dei  livelli, ma anche la visualizzazione dei rings, l'editor delle animazioni per palette e qualche piccolo inizio sull'effetto distorsione dello sfondo. Successivamente ho studiato un po di DirectX ed ho cominciato a creare la base per un engine di Sonic the Hedgehog, ma mi sono scontrato su molti problemi e limitazioni dovute all'impossibilità di gestire le palette con le nuove schede video. Ho provato a fare il rendering dei livelli ma con un risultato abbastanza scadente:

martedì 25 ottobre 2011

Installare Mac OS X Lion sull'ASUS U36SD [AGGIORNATA x2]

Prerequisiti:
QUESTO archivio
- Un Mac già funzionale (va bene sia su hardware reale sia su virtuale)
- L'immagine retail in formato DMG di Lion (scaricabile legalmente dall'App Store)
- Una penna usb, un hard disk esterno o altro che abbia minimo 8GB di memoria, preferibilmente con un attacco 2.0
- Un pizzico di conoscenza e pazienza

Questa è la situazione che OSX si ritroverà a fine guida:
- Intel HD3000 con uscita HDMI e VGA funzionante, risoluzione 1366x768 e accelerazione video QE/CI
- Nvidia GT520M con Optimus non riconosciuta
- Audio funzionante
- Microfono funzionante
- Webcam funzionante, ma girata di 180°
- Scheda Ethernet funzionante
- Scheda Wireless funzionante
- Porta USB 3.0 funzionante
- Lettore schede funzionante
- Riavvio funzionante
- Shutdown NON funzionante (esegue tutte le operazioni all'uscita ma non manda il segnale di shutdown all'ACPI. Causa schermo nero e pc acceso)
- Sleep NON funzionante (il computer non va in standby e si blocca con schermo nero)
- Batteria funzionante
- Gestures trackpad basilari funzionanti
- Aggiornamenti dell'OS funzionanti
- Tasti FN NON funzionanti

domenica 25 settembre 2011

Croc - Legend of the gobbos (UN)PACK Tool

Who knows about this great game that falls on Saturn and Playstation more that 10 years ago? Well, today I want to show you my pack/unpack tool about this game.

This isn't the first release, infact a lot of time ago I released an unpacker that works only with the Playstation version. This works with both :). In a single command-line program, you can extract, edit and repack the various files of the game, also I added the possibility to repack the files with the standard alignment of a CD-ROM to speedup the loading times (but this cost an increasing of the output file).

download for win32

README

Please don't spam on the non-kingdom hearts II Final Mix translation related posts about the freeze of the game with my patch and don't ask about Kingdom Hearts I Final Mix translation :) thank you. Also I'm not replying to anyone in these two last months: I reply already to every type of question, so search on the comments and be patient. Oh, for now I won't work anymore on KH series, I'm sorry.

venerdì 1 luglio 2011

Kingdom Hearts II Final Mix English/Italian translation [FINAL-Rev5]

After some months of work, the translation goes to the end.
Everything is translated and every bug was corrected (the chest, crowns, in/out-party bugs and the freeze after the Sora's awakening), so finally I'm ready to publish here everything.

domenica 5 giugno 2011

Dark Cloud's tools

Who ever played to a game called Dark Cloud? It was my first game for PS2 and I remember that I found it on a demo-disc. Recently I saw a video that show the beta version of this game, much different from the final version, so I developed an unpacker for this game to see if some old data was keep (and yes, I founded some "old" data) that I want to share.

giovedì 26 maggio 2011

After 1 month... [UPDATE]

Yeah, after a month I'm here again writing a new post.
As someone knows, I'm studying in these days. I had the exams simulations 3 days ago and I'm a little satisfied, but I want to study more to get an near-perfect exam! The writing examination will start on 23 July and the oral examination after few days from 23. I'm studying these arguments:
- Giovanni Pascoli (Italian literature)
- World War 1 (History)
- Facebook (English)
- An social network's database and his network (I'm programming it in Microsoft Access)
- Modem and Modulation PSK/DPSK (Electronics)
- Average (Statistics)
I'm a bit sad because I hate study and I prefer to spend my time to other things but I need it :P. Then, what are the status of my projects?

Kingdom Hearts II Final Mix translation:

mercoledì 27 aprile 2011

Kingdom Hearts II - KH2.IMG unpacked

After a while by the release of KH2 Translation Beta 1, I started to working on a complete unpacker/repacker of KH2.IMG, a file that contain all data files of the game.

sabato 23 aprile 2011

Conflitto tra LibUSB-Win32 e sistemi operativi a 64 bit

Ieri mi è capitato di inceppare il sistema operativo installando dei moduli chiamati LibUSB che non solo hanno cominciato a non far riconoscere più al mio Windows 7 x64 i dispositivi che collegavo via USB, ma al riavvio della macchina mi sono ritrovato con la tastiera e mouse non funzionanti...

mercoledì 20 aprile 2011

Why the translation of KH2 Final Mix sometimes freeze? There is a solution?

As a lot of people knows, the game freeze sometimes when you open a big chest, own a new keyblade or get void gold crowns for the puzzle. In this post I'll describe the cause of the problem.

sabato 9 aprile 2011

Kingdom Hearts II Final Mix ENG/ITA - Beta 1 Download

Hey guys, I'm happy to write here that today I'll release the first beta of KH2FM translation!

giovedì 31 marzo 2011

KH2FM English/Italian patch (progress)

Well, the translation is going very well. I've already translated two worlds including the new cutscenes. The damn thing is to translating the new NPC dialogs that it's veeeeeery boring. I've discovered also that some files can't be bigger than an specific size and this make me an big problem, but I'll find an solution for sure :). These are some screenshots of the translation:

lunedì 21 marzo 2011

Kingdom Hearts II Final Mix in English too!

While I'm translating the game in Italian (my language) I'm translating it also in english!

martedì 15 marzo 2011

Kingdom Hearts II Final Mix - Traduzione italiana

Dopo il lavoraccio fatto su Birth By Sleep ho pensato di vedere se era possibile e dopo se potevo fare una traduzione di un titolo che in moltissimi, compreso il sottoscritto, vorrebbero vedere nella loro lingua. E bene si, dopo un sacco di prove e tentativi sono riuscito nel mio intento (almeno in parte)!

lunedì 7 marzo 2011

[GUIDA] Recuperare/Ripristinare i salvataggi corrotti su PSP

Molti di voi avranno aggiornato a nuovi firmware riscontrando gravi conseguenze, ovvero la perdita dei salvataggi. Questa guida mostrerà passo passo come recuperarli seguendo la strada più semplice che sono riuscito a trovare.


giovedì 3 marzo 2011

Birth By Sleep Final Mix - Patch ITA 1.2

Ed ecco la patch 1.2 della traduzione italiana di Kingdom Hearts Birth By Sleep Final Mix!

domenica 20 febbraio 2011

Birth By Sleep Final Mix - Patch ITA 1.1

Con l'aiuto di Truthkey, sono riuscito a sostituire i font della versione JAP/FM con quella europea.
Questo mi ha permesso di finire di tradurre il menu, di consentire le lettere accentate e di guadagnare spazio nei testi, evitando quei rari testi che uscivano fuori dai bordi dello schermo o delle finestre/fumetti. Ho anche corretto qualche imperfezione nella Command Board ed ho finito di tradurre gli ingredienti dei gelati. A parte la descrizione dei personaggi nel diario e il riassunto delle storie dei mondi dei vari personaggi, punti che verranno tradotti da un altro team successivamente.