The Starport
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord
  • Register
  • Login

I tried adding names to names resoures dll

Scheduled Pinned Locked Moved Coding
36 Posts 10 Posters 23.3k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rsabatinoR Offline
    rsabatinoR Offline
    rsabatino
    wrote on global:last_edited_by,
    #1

    is there a way to safely add names to names resoures dll. wanted to make names for the battleships that the order fly around and so i added names once i added strings to it like this

    STRINGTABLE
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
    {
    801, “Battleship Osiris”
    802, “ORDER”
    803, “Battleship Hike”
    804, “Battleship Aken”
    805, “Battleship Aker”
    806, “Battleship Ament”
    807, “Battleship Amun-Re”
    808, “Battleship Anat”
    809, “Battleship Anuke”
    810, “Battleship Apep”
    812, “Battleship Banebdjetet”
    813, “Battleship Bast”
    814, “Battleship Dedwen”
    815, “Battleship Geb”
    }
    i put the number ranges in ship props nothing

    56001, “ORDER”
    56002, “Battleship Hike”
    56003, “Battleship Aken”
    56004, “Battleship Ament”
    56005, “Battleship Amun-Re”
    56006, “Battleship Anat”
    56007, “Battleship Anuke”
    56008, “Battleship Apep”
    56009, “Battleship Banebdjetet”
    56010, “Battleship Bast”
    56011, “Battleship Dedwen”
    56012, “Battleship Geb”
    56013, “Battleship Amaunet”
    56014, “Battleship Antaios”
    56015, “Battleship Anuket”
    }
    then i did this also added the number ranges and crashed anyway i can do this safely

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #2

    FLDev edits resources.dll…

    1 Reply Last reply
    0
  • rsabatinoR Offline
    rsabatinoR Offline
    rsabatino
    wrote on global:last_edited_by,
    #3

    i used res hack . can fldev work with vista? i will try it.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #4

    It was built after the .NET Framework 2.0, so I’d expect it to work. I have never tried it however (staying as far as I can from Vista).

    1 Reply Last reply
    0
  • rsabatinoR Offline
    rsabatinoR Offline
    rsabatino
    wrote on global:last_edited_by,
    #5

    yeah it works fine i have it right now . is there a tutorial for it?

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #6

    Word of mouth, patience and trial/error 😛

    (Haven’t had the time to make one)

    1 Reply Last reply
    0
  • rsabatinoR Offline
    rsabatinoR Offline
    rsabatino
    wrote on global:last_edited_by,
    #7

    ok thankyou nice tool by the way

    1 Reply Last reply
    0
  • rsabatinoR Offline
    rsabatinoR Offline
    rsabatino
    wrote on global:last_edited_by,
    #8

    ok heres a stupid question. there has to be a way to find out if the changes work . i keep poping in names into empty slots and nothing is there something im not doing right. for instance i go to next empty and put in Battleship Baked potatoe and then i update the dll and nothing. my question is how do i make it show up so i can add it?

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #9

    You need to press “Update” in the bottom right corner and when you have done all the changes you want, you press “Apply Changes”. Make sure the DLLs are not read-only.

    1 Reply Last reply
    0
  • rsabatinoR Offline
    rsabatinoR Offline
    rsabatino
    wrote on global:last_edited_by,
    #10

    you know just thinking about it . its vista right now i am reving up my xp computer reinstalling everything and most likely it vista because you cant update or do anything its all write protected

    1 Reply Last reply
    0
  • S Offline
    S Offline
    StarTrader Historic Supporter
    wrote on global:last_edited_by,
    #11

    Quick note on FL Dev…

    Just as with FL-ID Referrer and some others, FL Dev does not notify the user if the target dll is write-protected, and does not save the changes!

    The only sure way is to manually delete the target file in the “Save as” window if there is one (not always).

    FF, is there any way you can update FL Dev to look for this and flag a failed write?

    And it would be nice if FL Dev took a backup of any changed dll, once in each session, numbering the last save sequentially so that we can go back one or two when needed? TIA.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    LancerSolurus
    wrote on global:last_edited_by,
    #12

    FF, I can show you how to change the attributes of a file to read-write if your interested, I’m pretty sure the same command is used in dot net just with something else attached to the start of it (IE System.etc ). My autoupdater has this built-in and sets all downloaded files to read-write to overwrite the file then sets it back to read-only after the file is installed.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #13

    The issue is bigger I’m afraid. The DLL routine I created uses some Windows core functions (not .NET) which do NOT, for some reason, notify of a failed write attempt. I’ve looked around for a while and couldn’t find anything about it. Attempting to verify the file beforehand outside of this routine with .NET code works, but only for the “read-only” state; if the DLL is being used by FL, the update will also silently fail AND the .NET functions will still return it as being available for read-write.

    However, I do believe when it fails it creates a new DLL with a hex-like name in the output folder; that DLL holds the modifications you wanted to do and I do think you can just delete the write-protected DLL and replace it by that one.

    Also, ST, FLDev has automated DLL editor backups. What it does is dump the modified entries every so often (the time limit and amount of backups is determined in the settings tab), but it does not backup the full DLL. I guess I could attempt to do that too.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    StarTrader Historic Supporter
    wrote on global:last_edited_by,
    #14

    It would make it so much better FF.

    Thanks in advance.

    By the way - the Update button does not enable ever until I switch to the infocard entry window and type something. Then it enables, so I have to delete my typing, and click back to the string entry window to click update. On top of the other problems - it’s a PAIN!

    1 Reply Last reply
    0
  • M Offline
    M Offline
    M0tah
    wrote on global:last_edited_by,
    #15

    @FriendlyFire:

    The issue is bigger I’m afraid. The DLL routine I created uses some Windows core functions (not .NET) which do NOT, for some reason, notify of a failed write attempt. I’ve looked around for a while and couldn’t find anything about it. Attempting to verify the file beforehand outside of this routine with .NET code works, but only for the “read-only” state; if the DLL is being used by FL, the update will also silently fail AND the .NET functions will still return it as being available for read-write.

    Are you calling GetLastError() after using the WinAPI functions? The return value of that should tell you whether the last function call succeeded, and if not the error code.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #16

    It’s been a while since I last checked, but I believe I had large troubles with something related to it and I already knew about GetLastError.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    StarTrader Historic Supporter
    wrote on global:last_edited_by,
    #17

    FF - I will give one last chance for FL Dev…

    BUT ONLY if and after you upgrade it…

    After updating one dll successfully but only with a lot of pain, as I said the UPDATE button will not enable unless I go to the Infocard window first, then it would not save until I made a copy of my dll and renamed it, took another copy and renamed that one and used it. Grrrr…

    Then I wasted the last 4 hours just now “updating” another one of my dll files, believing that it was saving the dll after I ensured it was NOT read-only and doing the same as I did with the first dll as above…

    …and to be more sure, I clicked back to the Home tab after each bunch of changes and clicked Update on the freelancer.ini path, believing it was reloading the goddam dll files from the originals - NO, it was NOT!

    It was showing me the changes from its goddam cache!

    And - it was NOT saving my changes into either the original dll nor an RCXnn.tmp as it had done (once) before.

    There’s another point - why did it write a RCXnn.tmp file only one time?

    So - all my changes were fictitious.

    Sorry to rain on your parade but this utility is next to useless in its current state, I want it to do what it thinks it is doing, but it’s been pissing on me for the past 4 hours and now it’s telling me it was raining!!

    Clearly others have not tested it as I have done.

    You must put in checks to be sure its dlls are not reserved, not read-only, and that the dll is really written each time, and you need to find out why it’s not reloading from the original files when I click the Update bar in the freelancer.ini path on the Home tab without closing the program and restarting it.

    I’m not a “proper” programmer but the few utilities that I have written are full of error checks to prevent foolish people like myself from going wrong.

    One tired and frustrated bunny-rabbit. It’s now 05:20 and I wasted my sleep time. Gnnaaaaaahhhhh!!

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FriendlyFire
    wrote on global:last_edited_by,
    #18

    The issue is that I’ve never seen this kind of behavior unless Freelancer was running at the time you attempted to write your changes.

    The Update button also works just fine over here, which makes me believe the problem might be on your end. Considering the amount of people who use FLDev and love it, I’m not sure everyone would’ve gone over such a blatant bug.

    You will have to tell me which operating system you are on, whether you’ve downloaded the latest .NET framework, whether Freelancer was running during this period, if you were running multiple instances of FLDev at once, etc. Basically anything you were doing or which could have anything to do with FL, FLDev or Windows. I’m shooting in the dark here since your rant appears to be directed at my program and not at fixing the issue.

    I hope we can resolve this issue together, otherwise I suggest you go back to FLEd-IDS and enjoy using it. Remember FLDev is still in beta for a reason; I can’t possibly debug it on all machines and combinations.

    You might also want to try out using the Output folder option and pointing it elsewhere; it might alleviate some of the issues you are having.

    P.S.: I’ve done quite a few error checks. If you’re paranoid, go in the Settings tab, select 1000 DLL backups and make them go at each minute. Otherwise, you can always export the changes with the “Export Changes” button in the DLL Editor tab to make sure you do not lose anything while using such a badly made and not foolproof tool. If you look in FLDev’s execution folder, you might even find a backup sitting there, who knows…

    1 Reply Last reply
    0
  • S Offline
    S Offline
    StarTrader Historic Supporter
    wrote on global:last_edited_by,
    #19

    Yeh I’m still tired. And pissed at losing 4 hours of work and 4 hours of sleep.

    Keep your hair on and I’ll try to help, I’m not pissed off at you, I’m pissed that these things happen. FL Dev will be very useful once it works the way you mean it to. Right now it doesn’t for me.

    Right -

    1. I’m running XP with SP2. My .NET Framework says v2.0
    2. I am not running FL at the same time, and only 1 instance of FL Dev.
    3. I rebooted the system several times to ensure no dlls were in use or locked. Started FL Dev only, as the first program. Same.
    4. The FL Dev I have has no “Settings” tabs or Export settings buttons anywhere. Just the 4 tabs at the top, no menu or help button. Is this an old version? I just downloaded it a week ago or so??

    There is nothing to tell me what version it is.

    Do this to follow what I do:-

    First problem:-
    1. Start FL Dev.
    2. On the Home tab, click Freelancer.ini Path Browse and go find Freelancer.ini. FL Dev loads in my 8 dlls.
    3. Click DLL Editor tab. Click nameresources.dll and type anything in the search window that it is sure to find, like “xenos”, check “search through all dlls” and click “Search”.
    4. Click on entry 047083. Click in the upper edit window, type something. UPDATE does not enable on my machine.
    5. Click the “Infocard” radiobutton, type something in the lower edit window. The UPDATE button enables. Delete the entry to go back to Name edit. Then UPDATE remains enabled. Alter the entry and can click UPDATE.

    I just switched back to FL Dev now from this post… and guess what - the Name edit window did not get redrawn, it’s just a blank space above the out-of-focus infocard edit window!!!

    I give up. I’ll try to send you a screenshot by pm, don’t know how to upload it here.

    (Sent it by email.)

    1 Reply Last reply
    0
  • S Offline
    S Offline
    StarTrader Historic Supporter
    wrote on global:last_edited_by,
    #20

    Downloaded FL Dev and it is a different file, FLDev_1.001b01.zip

    Installed it, there is a help link and the Update button works.

    But no settings tab/button, no Output Folder option, no Export changes button.

    And it still does not update the real dll, even from fresh reboot.

    Where do I go now?

    1 Reply Last reply
    0

  • Story Mission level requirement
    C
    CommanderArgelo
    0
    11
    52

  • Crash Offsets
    J
    josbyte
    0
    231
    251.4k

  • Capital ships shield collision detection
    C
    CommanderArgelo
    0
    3
    17

  • Dropping a phantomloot cargo from an NPC
    C
    CommanderArgelo
    0
    5
    26

  • Incorrect Shield Value on HUD
    C
    CommanderArgelo
    0
    4
    19

  • @Adoxa - Wheel Scroll plugin improvements
    AingarA
    Aingar
    0
    3
    20

  • Release: Advanced Renderer v. 1.1 beta 1
    S
    SWAT_OP-R8R
    3
    50
    428

  • German Mod Tutorials? 2024 Mod Tutorial?
    S
    SWAT_OP-R8R
    0
    18
    66
  • First post
    Last post
0
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord