Write Field

Vigintennalis Membrum
Vicennium
Joined
Aug 10, 2006
Messages
466
Reaction score
138
Hello,

i was wondering if anyone could help me a little bit with write field? the problem is that when i am playing, there are no mobs in any of the new maps, i have set up the server side dll + client sql scripts. I can visit the maps, i can log out and when i log back in i will remain there, but i am unable to spawn any monsters, use any commands or spawn any flags. Any help would be appreciated.
 
I'm afraid it's still on my to-do list. :blush: But have you made got SPP / SPM files to go with your new map in the server folder? If they don't exist, it kinda quietly fails to write the new spawn point from a GM insert and goes nowhere from there.
 
yes i have all files in place, ive copied the spp from another map, i even added an spc to see if it would help, i have the spm added in wormy's release and the smd files are all copied from my client, i may repatch my smd files as im not sure which client i intially copied them from, but no, dropping items on the floor doesnt work, that was the first thing i tried, just dissapeared =/


- Recopied files from folder i was running client from, recompiled my writefield file and replaced it too. should a new spp file be completely blank? or should it contain anything?

Also should spp files be named as Mine-1.spp or Mine-1.ase.spp
 
Last edited:
SPawn Point file (SPP) should be exactly 2400 bytes of 0. (if only you could dd if=/dev/zero of=C:\PTServer\GameServer\Field\mine-1.spp bs=200 count=12 in Windows eh? Oh wait, ! :ott1:) It should store 200× 32bit X, Y and Z co-ordinates for map flags.

SPawn Monsters (SPM) is another plain Korean ASCII file. (correctly EUC-KR ASCII)

SPawn Character (SPC) files are probably the most complex, but we have a couple of editors with one or other limitation in them. They are still a simple memory array for NPCs, (non-player characters) but the record structure is more complex than the Monster spawn file. They are exactly 50400 bytes large, but I'd copy an existing one and edit it with one of the released tools, if you need NPCs on the map. If you don't need NPCs, then you can leave that file out.

The correct name is Mine-1.ase.spp, Mine-1.ase.spm, Mine-1.ase.spc, the server won't find them otherwise. :wink:
 
yea i know about all the different files and stuff, i worked with it before when i added lost temple years ago to my server. thats all good. but i cant seem to add the new maps. i really dont understand it. possibly an error with the writeserverfield dll. client side works a charm. but possibly server isnt working due to needing extra data to write.
 
Yes, I thought you did and posted more as a refresher, and to assure that they should, AFAIK, be the same with WriteField as without... except more of them for extra maps.

The same additions should be made to each version, server and client before compiling each... But I've certainly not checked since Vormav switched to Code::Blocks. When I was working them into VC, Pelles and trying Digital Mars, Watcom and Borland, it occurred to me that the ideal way in Visual Studio would be to have the two files built as part of the same project. Traditional GCC would use a makefile or BISON or such to produce multiple binaries in one build.

If the same data came from a single header, shared by the two DLLs then you would only have to make the changes once. Even if the data is stored slightly differently, a Macro could format it correctly at compile time, but I don't remember exactly how Vormav set it up... I'll have a look if Vormav doesn't respond before hand. :)

--- EDIT ---
Also, in case you didn't notice it, you should check out . It still talks about DevC++ too, but should still be pretty close, I think. May spark some inspiration?
 
Last edited:
dont know if you will know this bob but is this dll patch compatible with wormys et3 server? i only ask because when adding et3 the lastfield offset may not have been updated and the dll may be overlapping previously written data, thus the header not being seen?

do you know which server this release is compatible with at all?
 
Hm... lets then reassure thing step by step than:
- did you change memory addresses in writeClientField.h to your client addresses?
- did you touch writeServerField.h/your server have different addresses than those?
- did server and client dlls compiled without any error?
- did you changed 2 calls in client and in server to call writeServerField/writeClientField?
- are you sure that DLL is called correctly (set BP)?
- did you made any "yours" modifications?
- copy any other working .ase.spp file, name it mine-1.ase.spp, open with hex editor, select all and fill with 00, be sure you are not adding or removing anything... just in case
- does only mine-1 is not working?
- is your output size is 66.50 KB ?


@bobsobol
Only difference now is that project is compiled as C++ code and not as C.
There are 2 different project files, for server and for client.
They using main writeField files, those define global values that are exactly the same for client and server.

___EDIT___
if you called function in this dll than nothing is overlapping, however other servers might use different addresses than those defined in writeServerField.h, just like client does.
 
i checked addresses in my server, et3_server by wormy. i changed nothing except client side addresses, none of the new maps work, i can visit them in my client but cannot drop items/drop gold/spawn mobs/call people to me. Any suggestions? i changed both of the calls in the server, client only had 1. et3 1976 client. Client dll works fine. but server will not. do i definately replace both of the calls in server?

output size is 311kb. but that was debug dll now because release wouldnt work. i think release is 68.5

im going to attempt to add it to server et2 by shagpub i beleive. if it works here i know its bad work by jaymoko on et3 release -.- :P

memset(firstFieldPointer, 0, 0xEA800);
Does this make a difference to anything?

vormav - if i upload my client + server + dll file can you take a look at it when you get time?
 
oh, you tried to add old mobs? mobs that are workin 100% in another map, sometimes new mobs can't not be working 100%
 
works fine. its server thats the problem. you dont have a version of kpt 4096 server available do you vormav? when the fields above ice were added by the many people who have hacked away at the server (as you know) the end of field table was not kept upto the right record continuously. there are parts of load field all over the server. I need a version of 4096 server without the encryption files you have put on them, either that or would you mind letting me know how to encrypt my dll so that it matches the formatting of yours in the 4096 release?

release version works also. the size of it is considerably smaller than debug. but thats understaandable as it is a release version with trimmed data, excluding data about the compilation of it.
 
Well I used kpt endless v2 before and it was working, I'm not sure what they changed in some other releases to make it not work.
Usually I target clean 4096.

BTW you can remove whole function that was CALLed before (and some sub) and you will get a lot of space for you modifications without adding new section to exe.
 
i dunno how to remove things from server. ive never done anything like that before. this is my first time using olly. But already im understanding alot. The end field pointer in kptendlessv2 is wrong. it does not take into account the maps above ice1. they are spread throughout the client. Would it not be possible for you to upload a clean copy of 4096? or atleast could you tell me how to make it compatible with kpt clients and port 10009?
 
WriteField does not care about what maps others added, it replace whole function. As soon as you call function in dll you will get your fields ready do use. What other server could do is that they could mess with functions that are reading this info.

Here is clean server4096 (port 10006, jPT crypt)


You can search for tutorials how to change cryption and ports on server/client and also how to remove x-trap... those are good things for olly starters. Some of those have good documentation.

If you have any problem than fell free to ask questions.
 
Back