Author Topic: CityRPG Coding Help  (Read 1084 times)

So, this stuff looks pretty easy, only problem is, Notepad++ wont let me edit the script, its like its locked.
Im new to this stuff but all I want to do is edit the properties of the jobs and stuff. can someone help me out with this?
Code: [Select]
// ============================================================
// Project : CityRPG
// Author : Iban
// Description : Civilian Code file
// ============================================================

$CityRPG::jobs::ID = 1;

$CityRPG::jobs::name = "Civilian";
$CityRPG::jobs::initialInvestment = 0;
$CityRPG::jobs::pay = 25;
$CityRPG::jobs::tools = "";
$CityRPG::jobs::datablock = PlayerSprint;
$CityRPG::jobs::education = 0;

$CityRPG::jobs::sellItems = false;
$CityRPG::jobs::sellFood = false;
$CityRPG::jobs::sellServices = false;

$CityRPG::jobs::law = false;
$CityRPG::jobs::canPardon = false;

$CityRPG::jobs::thief = false;
$CityRPG::jobs::hideJobName = false;

$CityRPG::jobs::offerer = false;
$CityRPG::jobs::claimer = false;

$CityRPG::jobs::labor = false;

$CityRPG::jobs::tmHexColor = "CCCCCC";
$CityRPG::jobs::helpline = "\c6Civilians are the default 'profession'. They have no perks and collect welfare.";
This is really easy, all I want to do is change the numbers, it is locked and I can't replace the numbers is all, any help?

Hm. Two things. One, is it still in a zip file? If so, you might want to remove it. Notepad++ may be incapable of writing to zip files, or something. Two: right click it and click properties. Is "Read Only" checked? If so, uncheck and apply.

it's almost undoubtedly the zip file. NPP can't handle zip files worth stuff.

I use NPP with .zip files all the time and it works perfectly fine, dunno what you guys are talking about

What text editor can write to zip files?  I've never seen one.

If I'm right unzip the file to edit the jobs

What text editor can write to zip files?  I've never seen one.

If I'm right unzip the file to edit the jobs
Notepad and SublimeText can. I'm not sure about others because I've never used them extensively.

My Notepad++ writes to .zip files fine. (using winrar if that matters..)

Notepad
Windows notepad can't write to a .txt file inside a zipped file

I beg to differ. I'm on linux right now so I can't prove you wrong, but I know it can.

i think the catch here is how the file is opened - via 7zip in a temp file or via winrar in a temp file?
i couldn't get it to work with N++ and 7zip

It depends on the zip handler not the editor

With WinRAR the files are extracted to a temp directory then watched for changes, and upon being changed WinRAR prompts to re-add them to the zip. With the Windows inbuilt zip handling, they might be flagged as read-only and thus unsaveable.

Using just a clean version of Windows, opening a zip file with Windows explorer and trying to edit it with Notepad will not work.

If you use 7zip, WindRAR, etc you can.

It depends on the zip handler not the editor

With WinRAR the files are extracted to a temp directory then watched for changes, and upon being changed WinRAR prompts to re-add them to the zip. With the Windows inbuilt zip handling, they might be flagged as read-only and thus unsaveable.
ey ey what did i say! i wasn't even positive and i still got it right!

I don't even have WinRAR installed. Double clicking on a zip so it opens in windows explorer, then editing a file with notepad and saving works. I don't know if this is a new feature in Windows 8 or something, but this is the way it works for me, because I know I've done this before.

new feature in Windows 8 or something
probably this

never worked in xp