Divinity Banner
Previous Thread
Next Thread
Print Thread
Page 1 of 3 1 2 3
Teleporting Anywhere, via hex editor #52511
09/04/03 06:19 PM
09/04/03 06:19 PM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
This is a translation of a post by Barnabus in the german forum, who was assisted by Flash with a lot of the detail on locations. It describes how to change your character's position (using a hex editor to alter information stored in a file in the saved game folder), which will even let you return to Rivertown from the wastelands. Original post; Hex - Hexereien

NOTE: Either there is a data format difference between the English and German game versions, or Barnabus and myself do not entirely agree on the definition of horizontal and vertical. The coordinates taken from that post are listed here in the opposite order.


Please read this post through before attempting, and make sure you follow the steps below carefully.


You will need a hex editor for this, such as the freeware program Hackman (though for that editor you'll need to stick to verion 7.x; later freeware versions have a low file size limit).

exclamation Warning exclamation
  • A mistake, typo or out-of-range value when editing the data file can cause the game to either crash to desktop or completely lock up, forcing a re-boot. Make a backup before hex editing anything.
  • The data.000 file basically defines your character (stats, skills, experience points, class, gender, etc.) and keeps track of all NPC locations and status, in addition to storing your own location. Without a valid, working data.000 file, the saved game will be useless.

If you use this technique to explore, it could be handy to take both teleporter stones with you. If you end up in a place you shouldn't be, you may be able to toss a teleporter somewhere and teleport out. In some cases, it may not make sense to carry both, or it may not be possible.


Procedure

1) Save the game under a new name before attempting this, or make a copy of the saved game folder. It couldn't hurt to also make a backup of the data.000 file in the new saved/copied game folder.

2) Browse to the saved game folder you wish to modify '..\Divine Divinity\Run\savegames\NameOfSave', and open the data.000 file in a hex editor.

3) Search for the text string AgentsV (ASCII mode search), hex value 41 67 65 6E 74 73 56.

4) Just a bit below this will be the text string new npc; click on the 'c' and the corresponding hex value will be highlighted as well.

5) Immediately after this value is a constant 00 03 00 00 00. The next two bytes, 00 28, show the horizontal (east-west) position of your character, then a constant 00 00, followed by two bytes, 30 E4, showing the vertical (north-south) position.
  • The origin of the coordinate system used by the game is in the north west corner of the map, with the Y axis (vertical) being positive downwards. Increasing the value of the X coordinate (horizontal) will move your character to the east, while increasing the Y coordinate (vertical) will move south.
  • In each two byte pair of data, the second byte has a much greater effect on position than the first. This allows the game to store exact character positions, but if you are just trying get past a wall, etc. you may not need the worry about the first byte at all.

6) The value that indicates which map you are on is further down in the file. In Hackman click on the arrow button at the bottom of the scroll bar to move down the file one 'page' at a time; don't try to drag the scroll bar or click below it, you will go past the spot you need.

A couple pages below the new npc will be two lines of FF. After the second line, there will be a constant 00 00 00 00, followed by a repeat of the X and Y character positions. Do not change these values, or the game will crash. This is followed by a constant 00 00 and then the map indicator 00.
  • 00 - Farmlands
  • 01 - Verdistis and Council Hall
  • 02 - Dark Forest
  • 03 - Black Ring dungeon
  • 04 - Wastelands

7) After making the required changes, save and close the file. You do not have to shut down the hex editor if you want to play around with this, but you should close the file so the editor and game are not trying to access the file at the same time.

8) Start Divinity (if required) and load the game. If all went according to plan, you should now be somewhere else, hopefully where you were aiming. :winkwink:


And since a picture is worth a thousand words.....





Below are the maximum values of the coordinates for each corner of each map. You will not be able to use every value between these, and trying to exceed them will cause the game to crash. The underground level of the wastelands and the ground level of the Black Ring dungeon are not used in the game.


Maximum X,Y coordinates for the NW, NE, SW and SE corners of each map are shown in the corresponding corners of the map's cell (NW=top left, etc.)

. Map .

Ground Level

Underground

00

X: 00 03
Y: 50 02

X: 00 7E
Y: 50 02

X: 60 03
Y: 90 7D

X: E0 7D
Y: B0 7D

X: 60 03
Y: F0 7E

X: E0 7D
Y: F0 7E

X: 60 03
Y: F0 FD

X: 00 7E
Y: F0 FD

01

X: 60 03
Y: 50 02

X: E0 7D
Y: 50 02

X: 60 03
Y: 30 7A

X: 00 7E
Y: 30 7A

X: 60 03
Y: F0 7D

X: E0 7D
Y: F0 7D

X: 60 03
Y: F0 FD

X: 00 7E
Y: F0 FD

02

X: 80 03
Y: 50 02

X: E0 7D
Y: 30 02

X: 80 03
Y: 50 7D

X: 00 7E
Y: 90 7D

X: 80 03
Y: 10 80

X: 00 7E
Y: F0 7F

X: 80 03
Y: F0 FD

X: 00 7E
Y: F0 FD

03

X: 20 03
Y: 10 03

X: A0 7C
Y: 10 03

X: 00 03
Y: 50 7D

X: C0 7C
Y: 50 7D

X: 00 03
Y: 10 03

X: A0 7C
Y: 10 03

X: 00 03
Y: 50 7D

X: A0 7C
Y: 50 7D

04

X: 20 03
Y: 30 03

X: E0 7D
Y: 30 03

X: 20 03
Y: B0 7E

X: E0 7D
Y: B0 7E

X: 80 03
Y: D0 81

X: 00 7E
Y: 90 81

X: 60 03
Y: F0 FD

X: E0 7D
Y: F0 FD




A few locations;

Map 00 ; X=20 61 ; Y=30 B5 -> Dreamworld
Map 00 ; X=60 4B ; Y=F0 38 -> small treasure room in the castle
Map 00 ; X=40 76 ; Y=F0 8B -> and the church has to hide something after all wink
Map 01 ; X=40 28 ; Y=D0 82 -> cellar in the house of Dante
Map 01 ; X=60 15 ; Y=F0 84 -> cellar room beneath Verdistis guard house
Map 01 ; X=40 11 ; Y=30 84 -> Cellar room under house of Martin
Map 01 ; X=40 0D ; Y=D0 86 -> cellar room under Lucius
Map 01 ; X=A0 0C ; Y=90 84 -> cellar room south of Corinna's house
Map 01 ; X=40 E0 ; Y=70 83 -> cellar room above Dante's house
Map 01 ; X=C0 32 ; Y=10 81 -> cellar room in Patrick's house
Map 01 ; X=60 2C ; Y=30 96 -> Penumbras SM-Studio shame
Map 04 ; X=40 25 ; Y=00 8A -> a dungeon in the Wastelands


Other locations, mostly mundane.
Some of these are intended as an alternate method for the bugs described in;
FIX for the Missing Catacombs Portal.


Map
X
Y
Location
00
20 6E
90 1E
Ars Magicana teleporter
40 18
90 99
catacombs portal, at stairs down to level 2
C0 3B
90 3E
castle armoury (dragon shield)
A0 70
70 26
Elrath's house, inside door, front room
A0 5D
70 89
Elrath's house, down stairs
00 58
D0 8C
Elrath's house, down stairs, lab
80 13
50 14
Mardaneus' house, inside front door
E0 4F
70 29
Nericons garden, inside gate
00 53
D0 87
Nericons garden, treasure room (portal)
~
01
80 16
10 8B
Ducal inn, under hatch
A0 1C
50 8B
Ducal inn, past the thieves' guild door
20 6C
70 E0
gong, in the council hall
00 32
F0 2F
imp world, entrance (bee / wasp garden)
80 41
90 1F
imp's house, inside
C0 55
F0 60
Verdistis teleporter
~
02
80 33
D0 0C
easter egg, at portal stone
80 39
70 09
treasure cave entrance
40 57
B0 3D
warrior's guild teleporter
~
03
20 3E
50 D5
black ring, down the stairs at entrance
~
04
60 75
10 77
black ring entrance
80 6D
B0 7A
past swamp, SW corner of island
A0 1C
90 2D
wastelands, start location


Re: Teleporting Anywhere, via hex editor #52512
05/05/03 04:28 AM
05/05/03 04:28 AM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada

X = A0 68 ; Y = B0 92 ; map 00 - level 5 of the Aleroth Catacombs, before the door leading to Thelyron's tomb, etc

X = 00 42 ; Y = D0 92 ; map 00 - castle treasure room, just past the door (room with gems)

X = 80 29 ; Y = 30 93 ; map 01 - under the hatch in the house in where Goemoe gets imprisoned

X = 20 6F ; Y = 90 DD ; map 01 - scrying room in the council hall

Re: Teleporting Anywhere, via hex editor #52513
10/05/03 06:03 PM
10/05/03 06:03 PM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
Boratus' cellar
X = 80 1D ; Y = D0 A7 ; map 02 - at the stairs
X = A0 1E ; Y = 30 A9 ; map 02 - in the cow's cell

Re: Teleporting Anywhere, via hex editor #52514
11/05/03 07:41 AM
11/05/03 07:41 AM
Joined: Apr 2003
Posts: 3
N
nntp Offline
stranger
nntp  Offline
stranger
N

Joined: Apr 2003
Posts: 3
I don't understand why people cheat. Not judging or anything, but doesn't it take the fun, and partially the challenge out of the game?

Re: Teleporting Anywhere, via hex editor #52515
11/05/03 06:49 PM
11/05/03 06:49 PM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
Check the Map has gone back to black and Solution for patch and disappearing maps topics. This procedure has been used to work around bugs more than it has for cheating.
Also, I can't think of a useful way to cheat with this. It will get you into a couple places you wouldn't otherwise be able to go (like those taken out of the game), but other than picking up a little bit of 'unreachable' loot, there is little benefit in using it to try to cheat.

Re: Teleporting Anywhere, via hex editor #52516
17/05/03 07:31 PM
17/05/03 07:31 PM
Joined: May 2003
Posts: 2
Z
zemis Offline
stranger
zemis  Offline
stranger
Z

Joined: May 2003
Posts: 2
Anyone have the hex code for Iona's dungeon (Anywhere)? My game suffered the black map of death and my previously opened graveyard exit from her dungeon is now reset! I want to get in there again to create the holy weapon.
thanks in advance,
Zemis the dwarf.

Re: Teleporting Anywhere, via hex editor #52517
17/05/03 09:53 PM
17/05/03 09:53 PM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada

Downloading the key for Nericon's garden may/should open the graveyard gate (it would in v1.32, I have not tested this with a v1.32 key in a game started with v1.34).
Lost Items - guide and directory of inventory files

Otherwise, save the game at the graveyard gate. When hex editing, leave the X value as is, and reduce the Y value to move yourself north. In Windows' Calculator, switch to hex mode (Scientific View), type in the second pair of numbers in the Y value, switch to decimal mode, subtract 15 (or so), switch back to hex mode, and use that value for your new character position. You could also just guesstimate the Y value, but unless you are familiar with hex values, switching to decimal will give you a better idea of how much change in the coordinates will move your character.

X = 00 53 ; Y = B0 12 ; map 00 - in the graveyard, at the exit from Iona's dungeon


Re: Teleporting Anywhere, via hex editor #52518
18/05/03 02:08 AM
18/05/03 02:08 AM
Joined: May 2003
Posts: 2
Z
zemis Offline
stranger
zemis  Offline
stranger
Z

Joined: May 2003
Posts: 2
Thanks for the fast reply Raze,

I can get into the graveyard ok, however, the problem is that the trigger which opens the hole in the ground leading out/in from Iona's dungeon was reset. If someone has the coordinates to any spot in the Iona dungeon (or can load up a save from there and jot it down?) I would be quite thankful.

(I made the mistake of moving my old saves out to another folder and deleted them. I won't do that one again!)
much appreciated,
Zemis the dwarf.

Re: Teleporting Anywhere, via hex editor #52519
18/05/03 05:04 AM
18/05/03 05:04 AM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
X = E0 64 ; Y = 70 E5 ; map 00 - Iona's dungeon, level 1, in the room with the chest where you get your stuff back

Re: Teleporting Anywhere, via hex editor #52520
21/05/03 03:54 AM
21/05/03 03:54 AM
Joined: Apr 2003
Posts: 9
S
Synikal Offline
stranger
Synikal  Offline
stranger
S

Joined: Apr 2003
Posts: 9
Hey Raze, you have the coordinates for the lower levels of Ionas dungeon? I never did finish of the creature down there and now when I Hex into the upper levels, the stairs next to the book leading down are gone.

Thanks pal

S.

Re: Teleporting Anywhere, via hex editor #52521
22/05/03 04:47 AM
22/05/03 04:47 AM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
Map
X
Y
Location
00
C0 64
30 86
orc camp, in Kroxy's cell
00 3B
30 E3
Iona's dungeon, level 1, at the exit to the graveyard
40 6F
70 D9
Iona's dungeon, level 2, at the stairs from level 1
40 76
70 C4
Iona's dungeon, level 3, at the cave entrance down to Iona's pet
~
01
20 67
10 DF
council hall, imp's room west of the gong
00 3D
30 65
Malcolm's house, in the bedroom by the cupboard
~
02
C0 2A
10 76
past the orc barricade south of the elven village
A0 27
F0 6E
at the entrance to Josephine's cave
A0 4C
B0 CF
dwarven mines, level 2, at the stairs before the sentry
E0 23
30 DF
under warrior's guild, room with the Kaa Gent scroll


Re: Teleporting Anywhere, via hex editor #52522
30/05/03 03:16 PM
30/05/03 03:16 PM
Joined: May 2003
Posts: 1
Z
Zargon Offline
stranger
Zargon  Offline
stranger
Z

Joined: May 2003
Posts: 1
I've Done everything you said with the hex editor and managed to find the correct map - mine is 03 the dungeon i wanna go to the farmlands which is 01. I want to do this because i skipped half the game because i thought that when i became divine i would be able to go back and finish things off.

However iv'e never used a hex editor before and i have absolutely no idea on how to change the value from 03 to 01 i imagend i would just click on it a type it in but this is not the case. I'e tryed subtracting things and inserting thngs but no joy, can anyone tell me how you change the value pls.

Re: Teleporting Anywhere, via hex editor #52523
30/05/03 05:17 PM
30/05/03 05:17 PM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
In Hackman, you can just select (click on) the value you want to change and type the new value.
Other hex editors may require a right click or double click on the value to bring up an edit box, or may open files in read-only mode by default, requiring an option be changed for editing. If you are using Hackman, try again; if not, check the help file.

PS when you go to the wastelands, your quest log gets cleared. This could just be cosmetic, but you may or may not be able to complete previous quests after returning to Rivertown this way.

Re: Teleporting Anywhere, via hex editor #52524
30/05/03 10:40 PM
30/05/03 10:40 PM
Joined: May 2003
Posts: 8,265
Seattle
LewsTherinKinslayer13 Offline
veteran
LewsTherinKinslayer13  Offline
veteran

Joined: May 2003
Posts: 8,265
Seattle
What are the special locations? How do you get them? NOT all THAT MATH! nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo



Re: Teleporting Anywhere, via hex editor #52525
30/05/03 11:12 PM
30/05/03 11:12 PM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
You mean the location in the data.000 file to change your character's position? Unfortunately, it requires a search for the specified text string, looking for more text after that, and counting bytes to determine the positions of the X, Y and map values.

Re: Teleporting Anywhere, via hex editor #52526
04/07/03 07:35 AM
04/07/03 07:35 AM
Joined: Apr 2003
Posts: 6,899
Somewhere between Here, ..and ...
Jurak Offline
veteran
Jurak  Offline
veteran

Joined: Apr 2003
Posts: 6,899
Somewhere between Here, ..and ...
sh#t man....... .......hats off to you Raze!!.. ..
ya got my vote!!


[color:"#33cc3"]Jurak'sRunDownShack!
Third Member of Off-Topic Posters
Defender of the [color:"green"]PIF.
[/color] Das Grosse Grüne Ogre!!! [/color]
Re: Teleporting Anywhere, via hex editor #52527
20/08/03 08:20 AM
20/08/03 08:20 AM
Joined: Aug 2003
Posts: 80
romania, buzau
barla_cosmin Offline
journeyman
barla_cosmin  Offline
journeyman

Joined: Aug 2003
Posts: 80
romania, buzau
Wow Raze....what languige are you specking???


LessRain
Re: Teleporting Anywhere, via hex editor #52528
14/02/04 03:35 AM
14/02/04 03:35 AM
Joined: Feb 2004
Posts: 3
Canada
shadowman Offline
stranger
shadowman  Offline
stranger

Joined: Feb 2004
Posts: 3
Canada
hi im new to larian forums and i was checkin out this thread on hexediting
i followed the directions accordin to the pic stating what is to be edited and not to be but yet when i inputed the positions for dr elrath's cellar and map 00 it seemed to send me to the cellar and then my char started runnin back toward my original save point *which jus for information purposes was in the graveyard jus outside ionas dungeon entrance can someone help me *did u perhaps make a typo on the xy positions* or could u give me some insight on how i maybe able to fix this problem *jus for information sake i need this xy position cause i forgot the cure potions in his lab but got the letter and told the proper authorities *so all im missin out of the full elrath combination quest is curing the poor ppl in rivertown
thanks for your time


Re: Teleporting Anywhere, via hex editor #52529
14/02/04 08:18 AM
14/02/04 08:18 AM
Joined: Mar 2003
Posts: 26,323
Canada
Raze Offline OP

veteran
Raze  Offline OP

veteran

Joined: Mar 2003
Posts: 26,323
Canada
it seemed to send me to the cellar and then my char started runnin back toward my original save point

Your character should not have been automatically running anywhere. You should have seen the graveyard as the game was loading, then been in the cellar when it finished. I've tried hex editing into a few places, and never had my character start running anywhere.


did u perhaps make a typo on the xy positions

No; while technically not impossible, they are correct in this case.


could u give me some insight on how i maybe able to fix this problem

Replace the edited data.000 file with the original or its backup, and edit it again. You are on the same map, so you should only have to change the first instance of the X and Y coordinates.
EDIT: if you were running when you saved the game, try loading it and save while standing still. Maybe the game had already figured out the coordinates where your next step would take you.

Last edited by Raze; 14/02/04 09:16 AM.
Re: Teleporting Anywhere, via hex editor #52530
14/02/04 09:03 AM
14/02/04 09:03 AM
Joined: Mar 2003
Posts: 5,016
Melbourne, Australia
HandEFood Offline
veteran
HandEFood  Offline
veteran

Joined: Mar 2003
Posts: 5,016
Melbourne, Australia
Was your character running when you saved the game?

Page 1 of 3 1 2 3

Moderated by  Dom_Larian, Larian_QA, Lar_q, Lynn, Macbeth 

Powered by UBB.threads™ PHP Forum Software 7.6.2