I'm in the course of programming a tool which is supposed to auto-generate interior cells and therefore needs to write an ESP-file. The programming language I'm using is Java. I have no experience in other languages yet. So what I've basically done until now is anolyzing the binary data in simple esp-files that have one interior with nothing in it but varying ambient settings. I've slowly started to get a draft about which byte is used for what information.
The problem started when I tried to read the number which defines the water level in an interior cell. It consists of four bytes, so it should be a usual signed integer (also seeing that the number range of the water height in the CS equals the number range of a signed integer). When I tried to line up the four bytes into an integer in Java, there turn out numbers that don't seem sensible to me. I've tried various ways but without any success. The same applies to the numbers that define the position of objects in interior cells. I cant get the numbers right in Java.
I know it sounds somewhat stupid but I have a plain and simple problem with the conversion of the number data in the ESP-files.
Has anyone ever tried to read those numbers in ESP-files?
(The bytes defining the water height of an interior are the 4 bytes right before the bytes that say "AMBI")